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

Side by Side Diff: lib/runtime/dart/js.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 unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/indexed_db.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/js', null, /* Imports */[ 1 dart_library.library('dart/js', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'dart/core', 3 'dart/core',
4 'dart/collection', 4 'dart/collection',
5 'dart/_js_helper' 5 'dart/_js_helper'
6 ], /* Lazy imports */[ 6 ], /* Lazy imports */[
7 ], function(exports, dart, core, collection, _js_helper) { 7 ], function(exports, dart, core, collection, _js_helper) {
8 'use strict'; 8 'use strict';
9 let dartx = dart.dartx; 9 let dartx = dart.dartx;
10 const _global = dart.global; 10 const _global = dart.global;
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 static _convertDataTree(data) { 42 static _convertDataTree(data) {
43 let _convertedObjects = collection.HashMap.identity(); 43 let _convertedObjects = collection.HashMap.identity();
44 function _convert(o) { 44 function _convert(o) {
45 if (dart.notNull(_convertedObjects.containsKey(o))) { 45 if (dart.notNull(_convertedObjects.containsKey(o))) {
46 return _convertedObjects.get(o); 46 return _convertedObjects.get(o);
47 } 47 }
48 if (dart.is(o, core.Map)) { 48 if (dart.is(o, core.Map)) {
49 let convertedMap = {}; 49 let convertedMap = {};
50 _convertedObjects.set(o, convertedMap); 50 _convertedObjects.set(o, convertedMap);
51 for (let key of o.keys) { 51 for (let key of o[dartx.keys]) {
52 convertedMap[key] = _convert(o.get(key)); 52 convertedMap[key] = _convert(o[dartx.get](key));
53 } 53 }
54 return convertedMap; 54 return convertedMap;
55 } else if (dart.is(o, core.Iterable)) { 55 } else if (dart.is(o, core.Iterable)) {
56 let convertedList = []; 56 let convertedList = [];
57 _convertedObjects.set(o, convertedList); 57 _convertedObjects.set(o, convertedList);
58 convertedList[dartx.addAll](o[dartx.map](_convert)); 58 convertedList[dartx.addAll](o[dartx.map](_convert));
59 return convertedList; 59 return convertedList;
60 } else { 60 } else {
61 return _convertToJS(o); 61 return _convertToJS(o);
62 } 62 }
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 } 403 }
404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); 404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]);
405 // Exports: 405 // Exports:
406 exports.JsObject = JsObject; 406 exports.JsObject = JsObject;
407 exports.JsFunction = JsFunction; 407 exports.JsFunction = JsFunction;
408 exports.JsArray$ = JsArray$; 408 exports.JsArray$ = JsArray$;
409 exports.JsArray = JsArray; 409 exports.JsArray = JsArray;
410 exports.allowInterop = allowInterop; 410 exports.allowInterop = allowInterop;
411 exports.allowInteropCaptureThis = allowInteropCaptureThis; 411 exports.allowInteropCaptureThis = allowInteropCaptureThis;
412 }); 412 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/indexed_db.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698