Skip to content

Commit e44cf96

Browse files
iinozemtsevcommit-bot@chromium.org
authored andcommitted
Fix creates value for getStats
It looks like it must match to Dart type, which has a different case than JS type. Change-Id: I485ef41d200fb689dd987edc757f3fcb7138ab90 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161481 Auto-Submit: Ivan Inozemtsev <[email protected]> Commit-Queue: Ivan Inozemtsev <[email protected]> Commit-Queue: David Morgan <[email protected]> Reviewed-by: David Morgan <[email protected]>
1 parent eb8dfee commit e44cf96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/lib/html/dart2js/html_dart2js.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27002,7 +27002,7 @@ class RtcPeerConnection extends EventTarget {
2700227002
List<RtcRtpSender> getSenders() native;
2700327003

2700427004
Future<RtcStatsReport> getStats() => promiseToFuture<RtcStatsReport>(
27005-
JS("creates:RTCStatsReport;", "#.getStats()", this));
27005+
JS("creates:RtcStatsReport;", "#.getStats()", this));
2700627006

2700727007
void removeStream(MediaStream? stream) native;
2700827008

tools/dom/scripts/systemhtml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ def _DartType(self, type_name):
10541054
"RTCPeerConnection.getStats": {
10551055
"type": "RtcStatsReport",
10561056
"maplike": "RTCStatsReport",
1057-
"creates": "RTCStatsReport"
1057+
"creates": "RtcStatsReport"
10581058
},
10591059
"RTCPeerConnection.generateCertificate": {
10601060
"type": "RtcCertificate",

0 commit comments

Comments
 (0)