diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index fc0976c3007..0d5160ffb7e 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -665,7 +665,7 @@ class Animation extends EventTarget {
set effect(AnimationEffectReadOnly? value) native;
Future get finished =>
- promiseToFuture(JS("creates:Animation;", "#.finished", this));
+ promiseToFuture(JS("", "#.finished", this));
String? get id native;
@@ -678,7 +678,7 @@ class Animation extends EventTarget {
set playbackRate(num? value) native;
Future get ready =>
- promiseToFuture(JS("creates:Animation;", "#.ready", this));
+ promiseToFuture(JS("", "#.ready", this));
num? get startTime native;
@@ -1354,18 +1354,13 @@ class BackgroundFetchManager extends Interceptor {
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture(JS(
- "creates:BackgroundFetchRegistration;",
- "#.fetch(#, #, #)",
- this,
- id,
- requests,
- options_dict));
+ return promiseToFuture(
+ JS("", "#.fetch(#, #, #)", this, id, requests, options_dict));
}
Future get(String id) =>
promiseToFuture(
- JS("creates:BackgroundFetchRegistration;", "#.get(#)", this, id));
+ JS("", "#.get(#)", this, id));
Future> getIds() =>
promiseToFuture>(JS("", "#.getIds()", this));
@@ -1681,11 +1676,10 @@ class Body extends Interceptor {
Future arrayBuffer() => promiseToFuture(JS("", "#.arrayBuffer()", this));
- Future blob() =>
- promiseToFuture(JS("creates:Blob;", "#.blob()", this));
+ Future blob() => promiseToFuture(JS("", "#.blob()", this));
Future formData() =>
- promiseToFuture(JS("creates:FormData;", "#.formData()", this));
+ promiseToFuture(JS("", "#.formData()", this));
Future json() => promiseToFuture(JS("", "#.json()", this));
@@ -2020,17 +2014,17 @@ class CacheStorage extends Interceptor {
Future keys() => promiseToFuture(JS("", "#.keys()", this));
- Future<_Response> match(/*RequestInfo*/ request, [Map? options]) {
+ Future match(/*RequestInfo*/ request, [Map? options]) {
var options_dict = null;
if (options != null) {
options_dict = convertDartToNative_Dictionary(options);
}
- return promiseToFuture<_Response>(
- JS("creates:_Response;", "#.match(#, #)", this, request, options_dict));
+ return promiseToFuture(
+ JS("", "#.match(#, #)", this, request, options_dict));
}
- Future<_Cache> open(String cacheName) => promiseToFuture<_Cache>(
- JS("creates:_Cache;", "#.open(#)", this, cacheName));
+ Future open(String cacheName) =>
+ promiseToFuture(JS("", "#.open(#)", this, cacheName));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3071,8 +3065,8 @@ class Clients extends Interceptor {
JS("", "#.matchAll(#)", this, options_dict));
}
- Future openWindow(String url) => promiseToFuture(
- JS("creates:WindowClient;", "#.openWindow(#)", this, url));
+ Future openWindow(String url) =>
+ promiseToFuture(JS("", "#.openWindow(#)", this, url));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3235,12 +3229,12 @@ class CookieStore extends Interceptor {
throw new UnsupportedError("Not supported");
}
- Future