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

Unified Diff: lib/runtime/dart/_interceptors.js

Issue 1020043002: Replace dart_core.js with actual compiled SDK (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merge Created 5 years, 9 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/_foreign_helper.js ('k') | lib/runtime/dart/_internal.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_interceptors.js
diff --git a/test/codegen/expect/dart/_interceptors.js b/lib/runtime/dart/_interceptors.js
similarity index 99%
rename from test/codegen/expect/dart/_interceptors.js
rename to lib/runtime/dart/_interceptors.js
index cd1ac84cfeec3cf10590103d82549850078f6bb0..24e0d164de7c96a6d28acbb7dbf3d67bcadf0f75 100644
--- a/test/codegen/expect/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -169,11 +169,11 @@ var _interceptors;
return _internal.IterableMixinWorkaround.fold(this, initialValue, combine);
}
firstWhere(test, opt$) {
- let orElse = opt$.orElse === void 0 ? null : opt$.orElse;
+ let orElse = opt$ && 'orElse' in opt$ ? opt$.orElse : null;
return dart.as(_internal.IterableMixinWorkaround.firstWhere(this, test, orElse), E);
}
lastWhere(test, opt$) {
- let orElse = opt$.orElse === void 0 ? null : opt$.orElse;
+ let orElse = opt$ && 'orElse' in opt$ ? opt$.orElse : null;
return dart.as(_internal.IterableMixinWorkaround.lastWhereList(this, test, orElse), E);
}
singleWhere(test) {
@@ -299,7 +299,7 @@ var _interceptors;
return collection.ListBase.listToString(this);
}
toList(opt$) {
- let growable = opt$.growable === void 0 ? true : opt$.growable;
+ let growable = opt$ && 'growable' in opt$ ? opt$.growable : true;
if (growable) {
return new JSArray.markGrowable(this.slice());
} else {
@@ -825,8 +825,8 @@ var _interceptors;
return this.splitMapJoin(from, {onMatch: convert});
}
splitMapJoin(from, opt$) {
- let onMatch = opt$.onMatch === void 0 ? null : opt$.onMatch;
- let onNonMatch = opt$.onNonMatch === void 0 ? null : opt$.onNonMatch;
+ let onMatch = opt$ && 'onMatch' in opt$ ? opt$.onMatch : null;
+ let onNonMatch = opt$ && 'onNonMatch' in opt$ ? opt$.onNonMatch : null;
return dart.as(_js_helper.stringReplaceAllFuncUnchecked(this, from, onMatch, onNonMatch), core.String);
}
replaceFirst(from, to, startIndex) {
@@ -1403,7 +1403,6 @@ var _interceptors;
exports.dispatchRecordExtension = dispatchRecordExtension;
exports.dispatchRecordIndexability = dispatchRecordIndexability;
exports.getNativeInterceptor = getNativeInterceptor;
- exports.mapTypeToInterceptor = mapTypeToInterceptor;
exports.findIndexForNativeSubclassType = findIndexForNativeSubclassType;
exports.findInterceptorConstructorForType = findInterceptorConstructorForType;
exports.findConstructorForNativeSubclassType = findConstructorForNativeSubclassType;
« no previous file with comments | « lib/runtime/dart/_foreign_helper.js ('k') | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698