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

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

Issue 1700153002: Wrapperless dart:html and friends (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: A couple more tweaks Created 4 years, 10 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_helper.js ('k') | lib/runtime/dart/_runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_mirrors.js
diff --git a/lib/runtime/dart/_js_mirrors.js b/lib/runtime/dart/_js_mirrors.js
index 092a56acf2f9e2c7d04d78949ce030a2daba26b4..5acd04f42db336a3c1510adef282312a3cd49922 100644
--- a/lib/runtime/dart/_js_mirrors.js
+++ b/lib/runtime/dart/_js_mirrors.js
@@ -77,7 +77,7 @@ dart_library.library('dart/_js_mirrors', null, /* Imports */[
}
[_toJsMap](map) {
let obj = {};
- map.forEach(dart.fn((key, value) => {
+ map[dartx.forEach](dart.fn((key, value) => {
obj[getName(key)] = value;
}, dart.void, [core.Symbol, dart.dynamic]));
return obj;
@@ -113,12 +113,12 @@ dart_library.library('dart/_js_mirrors', null, /* Imports */[
let fn = this[_cls][dart.metadata];
this[_metadata] = fn == null ? dart.list([], mirrors.InstanceMirror) : core.List$(mirrors.InstanceMirror).from(dart.as(dart.dsend(dart.dcall(fn), 'map', dart.fn(i => new JsInstanceMirror._(i), JsInstanceMirror, [dart.dynamic])), core.Iterable));
this[_declarations] = core.Map$(core.Symbol, mirrors.MethodMirror).new();
- this[_declarations].set(this.simpleName, new JsMethodMirror._(this, this[_cls]));
+ this[_declarations][dartx.set](this.simpleName, new JsMethodMirror._(this, this[_cls]));
}
newInstance(constructorName, args, namedArgs) {
if (namedArgs === void 0) namedArgs = null;
dart.assert(getName(constructorName) == "");
- dart.assert(namedArgs == null || dart.notNull(namedArgs.isEmpty));
+ dart.assert(namedArgs == null || dart.notNull(namedArgs[dartx.isEmpty]));
let instance = new this[_cls](...args);
return new JsInstanceMirror._(instance);
}
« no previous file with comments | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/_runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698