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

Unified Diff: lib/runtime/dart/_debugger.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 | « no previous file | 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/_debugger.js
diff --git a/lib/runtime/dart/_debugger.js b/lib/runtime/dart/_debugger.js
index 3414b2d7371b41582e7ad95711ff82523d453946..0f7507a442a0ac8a72cbe78cc4f437dfba66d3fb 100644
--- a/lib/runtime/dart/_debugger.js
+++ b/lib/runtime/dart/_debugger.js
@@ -384,13 +384,13 @@ dart_library.library('dart/_debugger', null, /* Imports */[
}
preview(object) {
let map = dart.as(object, core.Map);
- return `${getObjectTypeName(map)} length ${map.length}`;
+ return `${getObjectTypeName(map)} length ${map[dartx.length]}`;
}
children(object) {
let map = dart.as(object, core.Map);
- let keys = map.keys[dartx.toList]();
+ let keys = map[dartx.keys][dartx.toList]();
let entries = dart.list([], NameValuePair);
- map.forEach(dart.fn((key, value) => {
+ map[dartx.forEach](dart.fn((key, value) => {
let entryWrapper = new MapEntry({key: dart.as(key, core.String), value: value});
entries[dartx.add](new NameValuePair({name: dart.toString(entries[dartx.length]), value: entryWrapper}));
}, dart.void, [dart.dynamic, dart.dynamic]));
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698