Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Unified Diff: lib/js/legacy/dart_sdk.js

Issue 2289263004: Remove deprecated code (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « lib/js/es6/dart_sdk.js ('k') | lib/src/analyzer/context.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/js/legacy/dart_sdk.js
diff --git a/lib/js/legacy/dart_sdk.js b/lib/js/legacy/dart_sdk.js
index 2621421a1e0915f6a9dac39d6da2ea0e2a314eab..454a28fb9f4d533977dd7e3701791d2b0a78959d 100644
--- a/lib/js/legacy/dart_sdk.js
+++ b/lib/js/legacy/dart_sdk.js
@@ -663,7 +663,6 @@ dart_library.library('dart_sdk', null, /* Imports */[
let PositionErrorTovoid = () => (PositionErrorTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [html$.PositionError])))();
let HttpRequestToString = () => (HttpRequestToString = dart.constFn(dart.definiteFunctionType(core.String, [html$.HttpRequest])))();
let ProgressEventTovoid$ = () => (ProgressEventTovoid$ = dart.constFn(dart.definiteFunctionType(dart.void, [html$.ProgressEvent])))();
- let HttpRequestTodynamic = () => (HttpRequestTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [html$.HttpRequest])))();
let ListOfSourceInfoTovoid = () => (ListOfSourceInfoTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [ListOfSourceInfo()])))();
let MediaStreamTovoid = () => (MediaStreamTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [html$.MediaStream])))();
let NavigatorUserMediaErrorTovoid = () => (NavigatorUserMediaErrorTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [html$.NavigatorUserMediaError])))();
@@ -16575,7 +16574,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
let iterator = input[dartx.iterator];
return async.Future.doWhile(dart.fn(() => {
if (!dart.test(iterator.moveNext())) return false;
- return async.Future.sync(dart.fn(() => dart.dcall(f, iterator.current), VoidTodynamic$())).then(dart.dynamic)(dart.fn(_ => true, dynamicTobool$()));
+ return async.Future.sync(dart.fn(() => dart.dcall(f, iterator.current), VoidTodynamic$())).then(core.bool)(dart.fn(_ => true, dynamicTobool$()));
}, VoidToObject$()));
}
static doWhile(f) {
@@ -54288,7 +54287,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
let method = opts && 'method' in opts ? opts.method : null;
let sendData = opts && 'sendData' in opts ? opts.sendData : null;
if (dart.test(html$.HttpRequest.supportsCrossOrigin)) {
- return html$.HttpRequest.request(url, {method: method, sendData: sendData}).then(core.String)(dart.fn(xhr => xhr[dartx.responseText], HttpRequestTodynamic()));
+ return html$.HttpRequest.request(url, {method: method, sendData: sendData}).then(core.String)(dart.fn(xhr => xhr[dartx.responseText], HttpRequestToString()));
}
let completer = CompleterOfString().new();
if (method == null) {
« no previous file with comments | « lib/js/es6/dart_sdk.js ('k') | lib/src/analyzer/context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698