OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |