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

Side by Side Diff: lib/runtime/dart/_js_helper.js

Issue 1700153002: Wrapperless dart:html and friends (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: 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
OLDNEW
1 dart_library.library('dart/_js_helper', null, /* Imports */[ 1 dart_library.library('dart/_js_helper', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'dart/core', 3 'dart/core',
4 'dart/collection', 4 'dart/collection',
5 'dart/_interceptors', 5 'dart/_interceptors',
6 'dart/_foreign_helper' 6 'dart/_foreign_helper'
7 ], /* Lazy imports */[ 7 ], /* Lazy imports */[
8 ], function(exports, dart, core, collection, _interceptors, _foreign_helper) { 8 ], function(exports, dart, core, collection, _interceptors, _foreign_helper) {
9 'use strict'; 9 'use strict';
10 let dartx = dart.dartx; 10 let dartx = dart.dartx;
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 return Primitives.objectHashCode(object); 965 return Primitives.objectHashCode(object);
966 } 966 }
967 } 967 }
968 dart.fn(objectHashCode, core.int, [dart.dynamic]); 968 dart.fn(objectHashCode, core.int, [dart.dynamic]);
969 function fillLiteralMap(keyValuePairs, result) { 969 function fillLiteralMap(keyValuePairs, result) {
970 let index = 0; 970 let index = 0;
971 let length = getLength(keyValuePairs); 971 let length = getLength(keyValuePairs);
972 while (index < dart.notNull(length)) { 972 while (index < dart.notNull(length)) {
973 let key = getIndex(keyValuePairs, index++); 973 let key = getIndex(keyValuePairs, index++);
974 let value = getIndex(keyValuePairs, index++); 974 let value = getIndex(keyValuePairs, index++);
975 result.set(key, value); 975 result[dartx.set](key, value);
976 } 976 }
977 return result; 977 return result;
978 } 978 }
979 dart.fn(fillLiteralMap, dart.dynamic, [dart.dynamic, core.Map]); 979 dart.fn(fillLiteralMap, dart.dynamic, [dart.dynamic, core.Map]);
980 function jsHasOwnProperty(jsObject, property) { 980 function jsHasOwnProperty(jsObject, property) {
981 return jsObject.hasOwnProperty(property); 981 return jsObject.hasOwnProperty(property);
982 } 982 }
983 dart.fn(jsHasOwnProperty, core.bool, [dart.dynamic, core.String]); 983 dart.fn(jsHasOwnProperty, core.bool, [dart.dynamic, core.String]);
984 function jsPropertyAccess(jsObject, property) { 984 function jsPropertyAccess(jsObject, property) {
985 return jsObject[property]; 985 return jsObject[property];
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 exports.CastErrorImplementation = CastErrorImplementation; 1185 exports.CastErrorImplementation = CastErrorImplementation;
1186 exports.FallThroughErrorImplementation = FallThroughErrorImplementation; 1186 exports.FallThroughErrorImplementation = FallThroughErrorImplementation;
1187 exports.RuntimeError = RuntimeError; 1187 exports.RuntimeError = RuntimeError;
1188 exports.random64 = random64; 1188 exports.random64 = random64;
1189 exports.jsonEncodeNative = jsonEncodeNative; 1189 exports.jsonEncodeNative = jsonEncodeNative;
1190 exports.SyncIterator$ = SyncIterator$; 1190 exports.SyncIterator$ = SyncIterator$;
1191 exports.SyncIterator = SyncIterator; 1191 exports.SyncIterator = SyncIterator;
1192 exports.SyncIterable$ = SyncIterable$; 1192 exports.SyncIterable$ = SyncIterable$;
1193 exports.SyncIterable = SyncIterable; 1193 exports.SyncIterable = SyncIterable;
1194 }); 1194 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698