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

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

Issue 1148333003: No dynamic at runtime (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 7 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
Index: lib/runtime/dart/_js_names.js
diff --git a/lib/runtime/dart/_js_names.js b/lib/runtime/dart/_js_names.js
index 660466986938b484dc51fbe55453dbd0da8cce9a..93d694b1871a8227aa4a0fec13de484efeea5338 100644
--- a/lib/runtime/dart/_js_names.js
+++ b/lib/runtime/dart/_js_names.js
@@ -41,13 +41,13 @@ var _js_helper = dart.lazyImport(_js_helper);
}
return result;
}
- dart.fn(computeMangledNames, core.Map$(core.String, core.String), [dart.dynamic, core.bool]);
+ dart.fn(computeMangledNames, core.Map$(core.String, core.String), [core.Object, core.bool]);
function computeReflectiveNames(map) {
preserveNames();
let result = dart.map();
map.forEach(dart.fn((mangledName, reflectiveName) => {
result.set(reflectiveName, mangledName);
- }, dart.dynamic, [core.String, core.String]));
+ }, core.Object, [core.String, core.String]));
return result;
}
dart.fn(computeReflectiveNames, core.Map$(core.String, core.String), [core.Map$(core.String, core.String)]);
@@ -62,7 +62,7 @@ var _js_helper = dart.lazyImport(_js_helper);
}(victim, Object.prototype.hasOwnProperty);
return new _interceptors.JSArray.markFixed(result);
}
- dart.fn(extractKeys, core.List, [dart.dynamic]);
+ dart.fn(extractKeys, core.List, [core.Object]);
function unmangleGlobalNameIfPreservedAnyways(name) {
let names = _foreign_helper.JS_EMBEDDED_GLOBAL('=Object', _js_embedded_names.MANGLED_GLOBAL_NAMES);
return dart.as(_js_helper.JsCache.fetch(names, name), core.String);

Powered by Google App Engine
This is Rietveld 408576698