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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 3003943002: restore FutureOr cast failure ignore (Closed)
Patch Set: Created 3 years, 3 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 | « pkg/dev_compiler/lib/js/es6/dart_sdk.js ('k') | pkg/dev_compiler/lib/src/compiler/code_generator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/js/legacy/dart_sdk.js
diff --git a/pkg/dev_compiler/lib/js/legacy/dart_sdk.js b/pkg/dev_compiler/lib/js/legacy/dart_sdk.js
index 5734b8bcb8562a85a4268dcc9fc99a42334d0111..8fbadc3cc0af39cf9346e6cfd1043ed9f49bf5d6 100644
--- a/pkg/dev_compiler/lib/js/legacy/dart_sdk.js
+++ b/pkg/dev_compiler/lib/js/legacy/dart_sdk.js
@@ -20416,11 +20416,11 @@ dart_library.library('dart_sdk', null, /* Imports */[
};
FutureOr.as = function as_FutureOr(o) {
if (o == null || T.is(o) || FutureOfT().is(o)) return o;
- return dart.castError(o, this, false);
+ return dart.as(o, this, false);
};
FutureOr._check = function check_FutureOr(o) {
if (o == null || T.is(o) || FutureOfT().is(o)) return o;
- return dart.castError(o, this, true);
+ return dart.as(o, this, true);
};
return FutureOr;
});
« no previous file with comments | « pkg/dev_compiler/lib/js/es6/dart_sdk.js ('k') | pkg/dev_compiler/lib/src/compiler/code_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698