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

Unified Diff: lib/runtime/dart/_js_helper.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/_js_embedded_names.js ('k') | lib/runtime/dart/_js_names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_helper.js
diff --git a/test/codegen/expect/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js
similarity index 99%
rename from test/codegen/expect/dart/_js_helper.js
rename to lib/runtime/dart/_js_helper.js
index 76a500416bc5c11fe54092d5d1e6ef598524516a..cfb9ee71bee0761837d74871137664a759c1d070 100644
--- a/test/codegen/expect/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -475,8 +475,8 @@ var _js_helper;
return `RegExp/${this.pattern}/`;
}
JSSyntaxRegExp(source, opt$) {
- let multiLine = opt$.multiLine === void 0 ? false : opt$.multiLine;
- let caseSensitive = opt$.caseSensitive === void 0 ? true : opt$.caseSensitive;
+ let multiLine = opt$ && 'multiLine' in opt$ ? opt$.multiLine : false;
+ let caseSensitive = opt$ && 'caseSensitive' in opt$ ? opt$.caseSensitive : true;
this.pattern = source;
this[_nativeRegExp] = makeNative(source, multiLine, caseSensitive, false);
this[_nativeGlobalRegExp] = null;
@@ -936,7 +936,7 @@ var _js_helper;
}
// Function getRuntimeTypeAsString: (dynamic, {onTypeVariable: (int) → String}) → String
function getRuntimeTypeAsString(runtimeType, opt$) {
- let onTypeVariable = opt$.onTypeVariable === void 0 ? null : opt$.onTypeVariable;
+ let onTypeVariable = opt$ && 'onTypeVariable' in opt$ ? opt$.onTypeVariable : null;
dart.assert(isJsArray(runtimeType));
let className = getConstructorName(getIndex(runtimeType, 0));
return `${className}` + `${joinArguments(runtimeType, 1, {onTypeVariable: onTypeVariable})}`;
@@ -947,7 +947,7 @@ var _js_helper;
}
// Function runtimeTypeToString: (dynamic, {onTypeVariable: (int) → String}) → String
function runtimeTypeToString(type, opt$) {
- let onTypeVariable = opt$.onTypeVariable === void 0 ? null : opt$.onTypeVariable;
+ let onTypeVariable = opt$ && 'onTypeVariable' in opt$ ? opt$.onTypeVariable : null;
if (type === null) {
return 'dynamic';
} else if (isJsArray(type)) {
@@ -966,7 +966,7 @@ var _js_helper;
}
// Function joinArguments: (dynamic, int, {onTypeVariable: (int) → String}) → String
function joinArguments(types, startIndex, opt$) {
- let onTypeVariable = opt$.onTypeVariable === void 0 ? null : opt$.onTypeVariable;
+ let onTypeVariable = opt$ && 'onTypeVariable' in opt$ ? opt$.onTypeVariable : null;
if (types === null)
return '';
dart.assert(isJsArray(types));
@@ -3754,8 +3754,6 @@ var _js_helper;
exports.hashCodeForNativeObject = hashCodeForNativeObject;
exports.defineProperty = defineProperty;
exports.isDartObject = isDartObject;
- exports.interceptorsByTag = interceptorsByTag;
- exports.leafTags = leafTags;
exports.findDispatchTagForInterceptorClass = findDispatchTagForInterceptorClass;
exports.lookupInterceptor = lookupInterceptor;
exports.UNCACHED_MARK = UNCACHED_MARK;
@@ -3927,7 +3925,6 @@ var _js_helper;
exports.voidTypeCheck = voidTypeCheck;
exports.checkMalformedType = checkMalformedType;
exports.checkDeferredIsLoaded = checkDeferredIsLoaded;
- exports.JavaScriptIndexingBehavior = JavaScriptIndexingBehavior;
exports.TypeErrorImplementation = TypeErrorImplementation;
exports.CastErrorImplementation = CastErrorImplementation;
exports.FallThroughErrorImplementation = FallThroughErrorImplementation;
« no previous file with comments | « lib/runtime/dart/_js_embedded_names.js ('k') | lib/runtime/dart/_js_names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698