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

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

Issue 1641643004: Roll analyzer to 0.27.2-alpha.1 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rerun tests and format Created 4 years, 11 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/html_common.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/js.js
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js
index de81b79fc2b8464b56030b5a7948c34bee836c3f..6deccb0101680e66b9490bdb4d0cce567a137862 100644
--- a/lib/runtime/dart/js.js
+++ b/lib/runtime/dart/js.js
@@ -48,14 +48,14 @@ dart_library.library('dart/js', null, /* Imports */[
if (dart.is(o, core.Map)) {
let convertedMap = {};
_convertedObjects.set(o, convertedMap);
- for (let key of dart.as(dart.dload(o, 'keys'), core.Iterable)) {
- convertedMap[key] = _convert(dart.dindex(o, key));
+ for (let key of o.keys) {
+ convertedMap[key] = _convert(o.get(key));
}
return convertedMap;
} else if (dart.is(o, core.Iterable)) {
let convertedList = [];
_convertedObjects.set(o, convertedList);
- convertedList[dartx.addAll](dart.as(dart.dsend(o, 'map', _convert), core.Iterable));
+ convertedList[dartx.addAll](o[dartx.map](_convert));
return convertedList;
} else {
return _convertToJS(o);
@@ -81,7 +81,7 @@ dart_library.library('dart/js', null, /* Imports */[
return 0;
}
['=='](other) {
- return dart.is(other, JsObject) && this[_jsObject] === dart.dload(other, _jsObject);
+ return dart.is(other, JsObject) && this[_jsObject] === other[_jsObject];
}
hasProperty(property) {
if (!(typeof property == 'string') && !(typeof property == 'number')) {
@@ -326,7 +326,7 @@ dart_library.library('dart/js', null, /* Imports */[
} else if (dart.is(o, core.DateTime)) {
return _js_helper.Primitives.lazyAsJsDate(o);
} else if (dart.is(o, JsObject)) {
- return dart.dload(o, _jsObject);
+ return o[_jsObject];
} else if (dart.is(o, core.Function)) {
return _putIfAbsent(_jsProxies, o, _wrapDartFunction);
} else {
@@ -350,7 +350,7 @@ dart_library.library('dart/js', null, /* Imports */[
let ms = o.getTime();
return new core.DateTime.fromMillisecondsSinceEpoch(dart.asInt(ms));
} else if (dart.is(o, _DartObject) && dart.jsobject != dart.realRuntimeType(o)) {
- return dart.dload(o, _dartObj);
+ return o[_dartObj];
} else {
return _putIfAbsent(_dartProxies, o, _wrapToDart);
}
« no previous file with comments | « lib/runtime/dart/html_common.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698