| OLD | NEW |
| 1 var _interceptors; | 1 var _interceptors; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 // Function _symbolToString: (Symbol) → String | |
| 5 function _symbolToString(symbol) { | |
| 6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | |
| 7 } | |
| 8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic | |
| 9 function _symbolMapToStringMap(map) { | |
| 10 if (map === null) | |
| 11 return null; | |
| 12 let result = new core.Map(); | |
| 13 map.forEach((key, value) => { | |
| 14 result.set(_symbolToString(key), value); | |
| 15 }); | |
| 16 return result; | |
| 17 } | |
| 18 // Function getInterceptor: (dynamic) → dynamic | |
| 19 function getInterceptor(object) { | |
| 20 return void 0; | |
| 21 } | |
| 22 // Function getDispatchProperty: (dynamic) → dynamic | |
| 23 function getDispatchProperty(object) { | |
| 24 return object[_foreign_helper.JS_EMBEDDED_GLOBAL('String', dart.as(_js_embed
ded_names.DISPATCH_PROPERTY_NAME, core.String))]; | |
| 25 } | |
| 26 // Function setDispatchProperty: (dynamic, dynamic) → dynamic | |
| 27 function setDispatchProperty(object, value) { | |
| 28 _js_helper.defineProperty(object, dart.as(_foreign_helper.JS_EMBEDDED_GLOBAL
('String', dart.as(_js_embedded_names.DISPATCH_PROPERTY_NAME, core.String)), cor
e.String), value); | |
| 29 } | |
| 30 // Function makeDispatchRecord: (dynamic, dynamic, dynamic, dynamic) → dynamic | |
| 31 function makeDispatchRecord(interceptor, proto, extension, indexability) { | |
| 32 return {i: interceptor, p: proto, e: extension, x: indexability}; | |
| 33 } | |
| 34 // Function dispatchRecordInterceptor: (dynamic) → dynamic | |
| 35 function dispatchRecordInterceptor(record) { | |
| 36 return record.i; | |
| 37 } | |
| 38 // Function dispatchRecordProto: (dynamic) → dynamic | |
| 39 function dispatchRecordProto(record) { | |
| 40 return record.p; | |
| 41 } | |
| 42 // Function dispatchRecordExtension: (dynamic) → dynamic | |
| 43 function dispatchRecordExtension(record) { | |
| 44 return record.e; | |
| 45 } | |
| 46 // Function dispatchRecordIndexability: (dynamic) → dynamic | |
| 47 function dispatchRecordIndexability(record) { | |
| 48 return record.x; | |
| 49 } | |
| 50 // Function getNativeInterceptor: (dynamic) → dynamic | |
| 51 function getNativeInterceptor(object) { | |
| 52 let record = getDispatchProperty(object); | |
| 53 if (record === null) { | |
| 54 if (_js_helper.initNativeDispatchFlag === null) { | |
| 55 _js_helper.initNativeDispatch(); | |
| 56 record = getDispatchProperty(object); | |
| 57 } | |
| 58 } | |
| 59 if (record !== null) { | |
| 60 let proto = dispatchRecordProto(record); | |
| 61 if (false === proto) | |
| 62 return dispatchRecordInterceptor(record); | |
| 63 if (true === proto) | |
| 64 return object; | |
| 65 let objectProto = Object.getPrototypeOf(object); | |
| 66 if (proto === objectProto) { | |
| 67 return dispatchRecordInterceptor(record); | |
| 68 } | |
| 69 let extension = dispatchRecordExtension(record); | |
| 70 if (extension === objectProto) { | |
| 71 let discriminatedTag = proto(object, record); | |
| 72 throw new core.UnimplementedError(`Return interceptor for ${discriminate
dTag}`); | |
| 73 } | |
| 74 } | |
| 75 let interceptor = _js_helper.lookupAndCacheInterceptor(object); | |
| 76 if (interceptor === null) { | |
| 77 let proto = Object.getPrototypeOf(object); | |
| 78 if (proto == null || proto === Object.prototype) { | |
| 79 return _foreign_helper.JS_INTERCEPTOR_CONSTANT(PlainJavaScriptObject); | |
| 80 } else { | |
| 81 return _foreign_helper.JS_INTERCEPTOR_CONSTANT(UnknownJavaScriptObject); | |
| 82 } | |
| 83 } | |
| 84 return interceptor; | |
| 85 } | |
| 86 dart.copyProperties(exports, { | |
| 87 get mapTypeToInterceptor() { | |
| 88 return _foreign_helper.JS_EMBEDDED_GLOBAL('', dart.as(_js_embedded_names.M
AP_TYPE_TO_INTERCEPTOR, core.String)); | |
| 89 } | |
| 90 }); | |
| 91 // Function findIndexForNativeSubclassType: (Type) → int | |
| 92 function findIndexForNativeSubclassType(type) { | |
| 93 if (exports.mapTypeToInterceptor == null) | |
| 94 return null; | |
| 95 let map = dart.as(exports.mapTypeToInterceptor, core.List); | |
| 96 for (let i = 0; dart.notNull(i) + 1 < dart.notNull(map.length); i = 3) { | |
| 97 if (dart.equals(type, map.get(i))) { | |
| 98 return i; | |
| 99 } | |
| 100 } | |
| 101 return null; | |
| 102 } | |
| 103 // Function findInterceptorConstructorForType: (Type) → dynamic | |
| 104 function findInterceptorConstructorForType(type) { | |
| 105 let index = findIndexForNativeSubclassType(type); | |
| 106 if (index === null) | |
| 107 return null; | |
| 108 let map = dart.as(exports.mapTypeToInterceptor, core.List); | |
| 109 return map.get(dart.notNull(index) + 1); | |
| 110 } | |
| 111 // Function findConstructorForNativeSubclassType: (Type, String) → dynamic | |
| 112 function findConstructorForNativeSubclassType(type, name) { | |
| 113 let index = findIndexForNativeSubclassType(type); | |
| 114 if (index === null) | |
| 115 return null; | |
| 116 let map = dart.as(exports.mapTypeToInterceptor, core.List); | |
| 117 let constructorMap = map.get(dart.notNull(index) + 2); | |
| 118 let constructorFn = constructorMap[name]; | |
| 119 return constructorFn; | |
| 120 } | |
| 121 // Function findInterceptorForType: (Type) → dynamic | |
| 122 function findInterceptorForType(type) { | |
| 123 let constructor = findInterceptorConstructorForType(type); | |
| 124 if (constructor === null) | |
| 125 return null; | |
| 126 return constructor.prototype; | |
| 127 } | |
| 128 class Interceptor extends dart.Object { | |
| 129 Interceptor() { | |
| 130 } | |
| 131 ['=='](other) { | |
| 132 return core.identical(this, other); | |
| 133 } | |
| 134 get hashCode() { | |
| 135 return _js_helper.Primitives.objectHashCode(this); | |
| 136 } | |
| 137 toString() { | |
| 138 return _js_helper.Primitives.objectToString(this); | |
| 139 } | |
| 140 noSuchMethod(invocation) { | |
| 141 throw new core.NoSuchMethodError(this, invocation.memberName, invocation.p
ositionalArguments, invocation.namedArguments); | |
| 142 } | |
| 143 get runtimeType() { | |
| 144 return _js_helper.getRuntimeType(this); | |
| 145 } | |
| 146 } | |
| 147 class JSBool extends Interceptor { | |
| 148 JSBool() { | |
| 149 super.Interceptor(); | |
| 150 } | |
| 151 toString() { | |
| 152 return String(this); | |
| 153 } | |
| 154 get hashCode() { | |
| 155 return this ? 2 * 3 * 23 * 3761 : 269 * 811; | |
| 156 } | |
| 157 get runtimeType() { | |
| 158 return core.bool; | |
| 159 } | |
| 160 } | |
| 161 class JSNull extends Interceptor { | |
| 162 JSNull() { | |
| 163 super.Interceptor(); | |
| 164 } | |
| 165 ['=='](other) { | |
| 166 return core.identical(null, other); | |
| 167 } | |
| 168 toString() { | |
| 169 return 'null'; | |
| 170 } | |
| 171 get hashCode() { | |
| 172 return 0; | |
| 173 } | |
| 174 get runtimeType() { | |
| 175 return core.Null; | |
| 176 } | |
| 177 noSuchMethod(invocation) { | |
| 178 return super.noSuchMethod(invocation); | |
| 179 } | |
| 180 } | |
| 181 class JSIndexable extends dart.Object { | |
| 182 } | |
| 183 class JSMutableIndexable extends JSIndexable { | |
| 184 } | |
| 185 class JSObject extends dart.Object { | |
| 186 } | |
| 187 class JavaScriptObject extends Interceptor { | |
| 188 JavaScriptObject() { | |
| 189 super.Interceptor(); | |
| 190 } | |
| 191 get hashCode() { | |
| 192 return 0; | |
| 193 } | |
| 194 get runtimeType() { | |
| 195 return JSObject; | |
| 196 } | |
| 197 } | |
| 198 class PlainJavaScriptObject extends JavaScriptObject { | |
| 199 PlainJavaScriptObject() { | |
| 200 super.JavaScriptObject(); | |
| 201 } | |
| 202 } | |
| 203 class UnknownJavaScriptObject extends JavaScriptObject { | |
| 204 UnknownJavaScriptObject() { | |
| 205 super.JavaScriptObject(); | |
| 206 } | |
| 207 toString() { | |
| 208 return String(this); | |
| 209 } | |
| 210 } | |
| 211 let JSArray$ = dart.generic(function(E) { | 4 let JSArray$ = dart.generic(function(E) { |
| 212 class JSArray extends Interceptor { | 5 class JSArray extends Interceptor { |
| 213 JSArray() { | 6 JSArray() { |
| 214 super.Interceptor(); | 7 super.Interceptor(); |
| 215 } | 8 } |
| 216 JSArray$fixed(length) { | 9 JSArray$fixed(length) { |
| 217 if (dart.notNull(!(typeof length == number)) || dart.notNull(length) < 0
) { | 10 if (dart.notNull(!(typeof length == number)) || dart.notNull(length) < 0
) { |
| 218 throw new core.ArgumentError(`Length must be a non-negative integer: $
{length}`); | 11 throw new core.ArgumentError(`Length must be a non-negative integer: $
{length}`); |
| 219 } | 12 } |
| 220 return new JSArray.markFixed(new Array(length)); | 13 return new JSArray.markFixed(new Array(length)); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 } | 327 } |
| 535 } | 328 } |
| 536 dart.defineNamedConstructor(JSArray, 'fixed'); | 329 dart.defineNamedConstructor(JSArray, 'fixed'); |
| 537 dart.defineNamedConstructor(JSArray, 'emptyGrowable'); | 330 dart.defineNamedConstructor(JSArray, 'emptyGrowable'); |
| 538 dart.defineNamedConstructor(JSArray, 'growable'); | 331 dart.defineNamedConstructor(JSArray, 'growable'); |
| 539 dart.defineNamedConstructor(JSArray, 'typed'); | 332 dart.defineNamedConstructor(JSArray, 'typed'); |
| 540 dart.defineNamedConstructor(JSArray, 'markFixed'); | 333 dart.defineNamedConstructor(JSArray, 'markFixed'); |
| 541 dart.defineNamedConstructor(JSArray, 'markGrowable'); | 334 dart.defineNamedConstructor(JSArray, 'markGrowable'); |
| 542 return JSArray; | 335 return JSArray; |
| 543 }); | 336 }); |
| 544 let JSArray = JSArray$(dynamic); | 337 let JSArray = JSArray$(dart.dynamic); |
| 545 let JSMutableArray$ = dart.generic(function(E) { | 338 let JSMutableArray$ = dart.generic(function(E) { |
| 546 class JSMutableArray extends JSArray$(E) { | 339 class JSMutableArray extends JSArray$(E) { |
| 547 } | 340 } |
| 548 return JSMutableArray; | 341 return JSMutableArray; |
| 549 }); | 342 }); |
| 550 let JSMutableArray = JSMutableArray$(dynamic); | 343 let JSMutableArray = JSMutableArray$(dart.dynamic); |
| 551 let JSFixedArray$ = dart.generic(function(E) { | 344 let JSFixedArray$ = dart.generic(function(E) { |
| 552 class JSFixedArray extends JSMutableArray$(E) { | 345 class JSFixedArray extends JSMutableArray$(E) { |
| 553 } | 346 } |
| 554 return JSFixedArray; | 347 return JSFixedArray; |
| 555 }); | 348 }); |
| 556 let JSFixedArray = JSFixedArray$(dynamic); | 349 let JSFixedArray = JSFixedArray$(dart.dynamic); |
| 557 let JSExtendableArray$ = dart.generic(function(E) { | 350 let JSExtendableArray$ = dart.generic(function(E) { |
| 558 class JSExtendableArray extends JSMutableArray$(E) { | 351 class JSExtendableArray extends JSMutableArray$(E) { |
| 559 } | 352 } |
| 560 return JSExtendableArray; | 353 return JSExtendableArray; |
| 561 }); | 354 }); |
| 562 let JSExtendableArray = JSExtendableArray$(dynamic); | 355 let JSExtendableArray = JSExtendableArray$(dart.dynamic); |
| 563 let _handleIEtoString = Symbol('_handleIEtoString'); | 356 let _handleIEtoString = Symbol('_handleIEtoString'); |
| 564 let _isInt32 = Symbol('_isInt32'); | 357 let _isInt32 = Symbol('_isInt32'); |
| 565 let _tdivFast = Symbol('_tdivFast'); | 358 let _tdivFast = Symbol('_tdivFast'); |
| 566 let _tdivSlow = Symbol('_tdivSlow'); | 359 let _tdivSlow = Symbol('_tdivSlow'); |
| 567 let _shlPositive = Symbol('_shlPositive'); | 360 let _shlPositive = Symbol('_shlPositive'); |
| 568 let _shrReceiverPositive = Symbol('_shrReceiverPositive'); | 361 let _shrReceiverPositive = Symbol('_shrReceiverPositive'); |
| 569 let _shrOtherPositive = Symbol('_shrOtherPositive'); | 362 let _shrOtherPositive = Symbol('_shrOtherPositive'); |
| 570 let _shrBothPositive = Symbol('_shrBothPositive'); | 363 let _shrBothPositive = Symbol('_shrBothPositive'); |
| 571 class JSNumber extends Interceptor { | 364 class JSNumber extends Interceptor { |
| 572 JSNumber() { | 365 JSNumber() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 throw new core.ArgumentError(b); | 409 throw new core.ArgumentError(b); |
| 617 return this % b; | 410 return this % b; |
| 618 } | 411 } |
| 619 abs() { | 412 abs() { |
| 620 return Math.abs(this); | 413 return Math.abs(this); |
| 621 } | 414 } |
| 622 get sign() { | 415 get sign() { |
| 623 return this['>'](0) ? 1 : this['<'](0) ? -1 : this; | 416 return this['>'](0) ? 1 : this['<'](0) ? -1 : this; |
| 624 } | 417 } |
| 625 toInt() { | 418 toInt() { |
| 626 if (dart.notNull(this['>='](_MIN_INT32)) && dart.notNull(this['<='](_MAX_I
NT32))) { | 419 if (dart.notNull(this['>='](JSNumber._MIN_INT32)) && dart.notNull(this['<=
'](JSNumber._MAX_INT32))) { |
| 627 return this | 0; | 420 return this | 0; |
| 628 } | 421 } |
| 629 if (isFinite(this)) { | 422 if (isFinite(this)) { |
| 630 return this.truncateToDouble() + 0; | 423 return this.truncateToDouble() + 0; |
| 631 } | 424 } |
| 632 throw new core.UnsupportedError('' + this); | 425 throw new core.UnsupportedError('' + this); |
| 633 } | 426 } |
| 634 truncate() { | 427 truncate() { |
| 635 return this.toInt(); | 428 return this.toInt(); |
| 636 } | 429 } |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 this[_string] = $_string; | 1163 this[_string] = $_string; |
| 1371 super.UnmodifiableListBase(); | 1164 super.UnmodifiableListBase(); |
| 1372 } | 1165 } |
| 1373 get length() { | 1166 get length() { |
| 1374 return this[_string].length; | 1167 return this[_string].length; |
| 1375 } | 1168 } |
| 1376 get(i) { | 1169 get(i) { |
| 1377 return this[_string].codeUnitAt(i); | 1170 return this[_string].codeUnitAt(i); |
| 1378 } | 1171 } |
| 1379 } | 1172 } |
| 1173 // Function _symbolToString: (Symbol) → String |
| 1174 function _symbolToString(symbol) { |
| 1175 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
| 1176 } |
| 1177 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic |
| 1178 function _symbolMapToStringMap(map) { |
| 1179 if (map === null) |
| 1180 return null; |
| 1181 let result = new core.Map(); |
| 1182 map.forEach((key, value) => { |
| 1183 result.set(_symbolToString(key), value); |
| 1184 }); |
| 1185 return result; |
| 1186 } |
| 1187 // Function getInterceptor: (dynamic) → dynamic |
| 1188 function getInterceptor(object) { |
| 1189 return void 0; |
| 1190 } |
| 1191 // Function getDispatchProperty: (dynamic) → dynamic |
| 1192 function getDispatchProperty(object) { |
| 1193 return object[_foreign_helper.JS_EMBEDDED_GLOBAL('String', dart.as(_js_embed
ded_names.DISPATCH_PROPERTY_NAME, core.String))]; |
| 1194 } |
| 1195 // Function setDispatchProperty: (dynamic, dynamic) → dynamic |
| 1196 function setDispatchProperty(object, value) { |
| 1197 _js_helper.defineProperty(object, dart.as(_foreign_helper.JS_EMBEDDED_GLOBAL
('String', dart.as(_js_embedded_names.DISPATCH_PROPERTY_NAME, core.String)), cor
e.String), value); |
| 1198 } |
| 1199 // Function makeDispatchRecord: (dynamic, dynamic, dynamic, dynamic) → dynamic |
| 1200 function makeDispatchRecord(interceptor, proto, extension, indexability) { |
| 1201 return {i: interceptor, p: proto, e: extension, x: indexability}; |
| 1202 } |
| 1203 // Function dispatchRecordInterceptor: (dynamic) → dynamic |
| 1204 function dispatchRecordInterceptor(record) { |
| 1205 return record.i; |
| 1206 } |
| 1207 // Function dispatchRecordProto: (dynamic) → dynamic |
| 1208 function dispatchRecordProto(record) { |
| 1209 return record.p; |
| 1210 } |
| 1211 // Function dispatchRecordExtension: (dynamic) → dynamic |
| 1212 function dispatchRecordExtension(record) { |
| 1213 return record.e; |
| 1214 } |
| 1215 // Function dispatchRecordIndexability: (dynamic) → dynamic |
| 1216 function dispatchRecordIndexability(record) { |
| 1217 return record.x; |
| 1218 } |
| 1219 // Function getNativeInterceptor: (dynamic) → dynamic |
| 1220 function getNativeInterceptor(object) { |
| 1221 let record = getDispatchProperty(object); |
| 1222 if (record === null) { |
| 1223 if (_js_helper.initNativeDispatchFlag === null) { |
| 1224 _js_helper.initNativeDispatch(); |
| 1225 record = getDispatchProperty(object); |
| 1226 } |
| 1227 } |
| 1228 if (record !== null) { |
| 1229 let proto = dispatchRecordProto(record); |
| 1230 if (false === proto) |
| 1231 return dispatchRecordInterceptor(record); |
| 1232 if (true === proto) |
| 1233 return object; |
| 1234 let objectProto = Object.getPrototypeOf(object); |
| 1235 if (proto === objectProto) { |
| 1236 return dispatchRecordInterceptor(record); |
| 1237 } |
| 1238 let extension = dispatchRecordExtension(record); |
| 1239 if (extension === objectProto) { |
| 1240 let discriminatedTag = proto(object, record); |
| 1241 throw new core.UnimplementedError(`Return interceptor for ${discriminate
dTag}`); |
| 1242 } |
| 1243 } |
| 1244 let interceptor = _js_helper.lookupAndCacheInterceptor(object); |
| 1245 if (interceptor === null) { |
| 1246 let proto = Object.getPrototypeOf(object); |
| 1247 if (proto == null || proto === Object.prototype) { |
| 1248 return _foreign_helper.JS_INTERCEPTOR_CONSTANT(PlainJavaScriptObject); |
| 1249 } else { |
| 1250 return _foreign_helper.JS_INTERCEPTOR_CONSTANT(UnknownJavaScriptObject); |
| 1251 } |
| 1252 } |
| 1253 return interceptor; |
| 1254 } |
| 1255 dart.copyProperties(exports, { |
| 1256 get mapTypeToInterceptor() { |
| 1257 return _foreign_helper.JS_EMBEDDED_GLOBAL('', dart.as(_js_embedded_names.M
AP_TYPE_TO_INTERCEPTOR, core.String)); |
| 1258 } |
| 1259 }); |
| 1260 // Function findIndexForNativeSubclassType: (Type) → int |
| 1261 function findIndexForNativeSubclassType(type) { |
| 1262 if (exports.mapTypeToInterceptor == null) |
| 1263 return null; |
| 1264 let map = dart.as(exports.mapTypeToInterceptor, core.List); |
| 1265 for (let i = 0; dart.notNull(i) + 1 < dart.notNull(map.length); i = 3) { |
| 1266 if (dart.equals(type, map.get(i))) { |
| 1267 return i; |
| 1268 } |
| 1269 } |
| 1270 return null; |
| 1271 } |
| 1272 // Function findInterceptorConstructorForType: (Type) → dynamic |
| 1273 function findInterceptorConstructorForType(type) { |
| 1274 let index = findIndexForNativeSubclassType(type); |
| 1275 if (index === null) |
| 1276 return null; |
| 1277 let map = dart.as(exports.mapTypeToInterceptor, core.List); |
| 1278 return map.get(dart.notNull(index) + 1); |
| 1279 } |
| 1280 // Function findConstructorForNativeSubclassType: (Type, String) → dynamic |
| 1281 function findConstructorForNativeSubclassType(type, name) { |
| 1282 let index = findIndexForNativeSubclassType(type); |
| 1283 if (index === null) |
| 1284 return null; |
| 1285 let map = dart.as(exports.mapTypeToInterceptor, core.List); |
| 1286 let constructorMap = map.get(dart.notNull(index) + 2); |
| 1287 let constructorFn = constructorMap[name]; |
| 1288 return constructorFn; |
| 1289 } |
| 1290 // Function findInterceptorForType: (Type) → dynamic |
| 1291 function findInterceptorForType(type) { |
| 1292 let constructor = findInterceptorConstructorForType(type); |
| 1293 if (constructor === null) |
| 1294 return null; |
| 1295 return constructor.prototype; |
| 1296 } |
| 1297 class Interceptor extends core.Object { |
| 1298 Interceptor() { |
| 1299 } |
| 1300 ['=='](other) { |
| 1301 return core.identical(this, other); |
| 1302 } |
| 1303 get hashCode() { |
| 1304 return _js_helper.Primitives.objectHashCode(this); |
| 1305 } |
| 1306 toString() { |
| 1307 return _js_helper.Primitives.objectToString(this); |
| 1308 } |
| 1309 noSuchMethod(invocation) { |
| 1310 throw new core.NoSuchMethodError(this, invocation.memberName, invocation.p
ositionalArguments, invocation.namedArguments); |
| 1311 } |
| 1312 get runtimeType() { |
| 1313 return _js_helper.getRuntimeType(this); |
| 1314 } |
| 1315 } |
| 1316 class JSBool extends Interceptor { |
| 1317 JSBool() { |
| 1318 super.Interceptor(); |
| 1319 } |
| 1320 toString() { |
| 1321 return String(this); |
| 1322 } |
| 1323 get hashCode() { |
| 1324 return this ? 2 * 3 * 23 * 3761 : 269 * 811; |
| 1325 } |
| 1326 get runtimeType() { |
| 1327 return core.bool; |
| 1328 } |
| 1329 } |
| 1330 class JSNull extends Interceptor { |
| 1331 JSNull() { |
| 1332 super.Interceptor(); |
| 1333 } |
| 1334 ['=='](other) { |
| 1335 return core.identical(null, other); |
| 1336 } |
| 1337 toString() { |
| 1338 return 'null'; |
| 1339 } |
| 1340 get hashCode() { |
| 1341 return 0; |
| 1342 } |
| 1343 get runtimeType() { |
| 1344 return core.Null; |
| 1345 } |
| 1346 noSuchMethod(invocation) { |
| 1347 return super.noSuchMethod(invocation); |
| 1348 } |
| 1349 } |
| 1350 class JSIndexable extends core.Object { |
| 1351 } |
| 1352 class JSMutableIndexable extends JSIndexable { |
| 1353 } |
| 1354 class JSObject extends core.Object { |
| 1355 } |
| 1356 class JavaScriptObject extends Interceptor { |
| 1357 JavaScriptObject() { |
| 1358 super.Interceptor(); |
| 1359 } |
| 1360 get hashCode() { |
| 1361 return 0; |
| 1362 } |
| 1363 get runtimeType() { |
| 1364 return JSObject; |
| 1365 } |
| 1366 } |
| 1367 class PlainJavaScriptObject extends JavaScriptObject { |
| 1368 PlainJavaScriptObject() { |
| 1369 super.JavaScriptObject(); |
| 1370 } |
| 1371 } |
| 1372 class UnknownJavaScriptObject extends JavaScriptObject { |
| 1373 UnknownJavaScriptObject() { |
| 1374 super.JavaScriptObject(); |
| 1375 } |
| 1376 toString() { |
| 1377 return String(this); |
| 1378 } |
| 1379 } |
| 1380 // Exports: | 1380 // Exports: |
| 1381 exports.JSArray = JSArray; |
| 1382 exports.JSArray$ = JSArray$; |
| 1383 exports.JSMutableArray = JSMutableArray; |
| 1384 exports.JSMutableArray$ = JSMutableArray$; |
| 1385 exports.JSFixedArray = JSFixedArray; |
| 1386 exports.JSFixedArray$ = JSFixedArray$; |
| 1387 exports.JSExtendableArray = JSExtendableArray; |
| 1388 exports.JSExtendableArray$ = JSExtendableArray$; |
| 1389 exports.JSNumber = JSNumber; |
| 1390 exports.JSInt = JSInt; |
| 1391 exports.JSDouble = JSDouble; |
| 1392 exports.JSPositiveInt = JSPositiveInt; |
| 1393 exports.JSUInt32 = JSUInt32; |
| 1394 exports.JSUInt31 = JSUInt31; |
| 1395 exports.JSString = JSString; |
| 1381 exports.getInterceptor = getInterceptor; | 1396 exports.getInterceptor = getInterceptor; |
| 1382 exports.getDispatchProperty = getDispatchProperty; | 1397 exports.getDispatchProperty = getDispatchProperty; |
| 1383 exports.setDispatchProperty = setDispatchProperty; | 1398 exports.setDispatchProperty = setDispatchProperty; |
| 1384 exports.makeDispatchRecord = makeDispatchRecord; | 1399 exports.makeDispatchRecord = makeDispatchRecord; |
| 1385 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; | 1400 exports.dispatchRecordInterceptor = dispatchRecordInterceptor; |
| 1386 exports.dispatchRecordProto = dispatchRecordProto; | 1401 exports.dispatchRecordProto = dispatchRecordProto; |
| 1387 exports.dispatchRecordExtension = dispatchRecordExtension; | 1402 exports.dispatchRecordExtension = dispatchRecordExtension; |
| 1388 exports.dispatchRecordIndexability = dispatchRecordIndexability; | 1403 exports.dispatchRecordIndexability = dispatchRecordIndexability; |
| 1389 exports.getNativeInterceptor = getNativeInterceptor; | 1404 exports.getNativeInterceptor = getNativeInterceptor; |
| 1390 exports.mapTypeToInterceptor = mapTypeToInterceptor; | 1405 exports.mapTypeToInterceptor = mapTypeToInterceptor; |
| 1391 exports.findIndexForNativeSubclassType = findIndexForNativeSubclassType; | 1406 exports.findIndexForNativeSubclassType = findIndexForNativeSubclassType; |
| 1392 exports.findInterceptorConstructorForType = findInterceptorConstructorForType; | 1407 exports.findInterceptorConstructorForType = findInterceptorConstructorForType; |
| 1393 exports.findConstructorForNativeSubclassType = findConstructorForNativeSubclas
sType; | 1408 exports.findConstructorForNativeSubclassType = findConstructorForNativeSubclas
sType; |
| 1394 exports.findInterceptorForType = findInterceptorForType; | 1409 exports.findInterceptorForType = findInterceptorForType; |
| 1395 exports.Interceptor = Interceptor; | 1410 exports.Interceptor = Interceptor; |
| 1396 exports.JSBool = JSBool; | 1411 exports.JSBool = JSBool; |
| 1397 exports.JSNull = JSNull; | 1412 exports.JSNull = JSNull; |
| 1398 exports.JSIndexable = JSIndexable; | 1413 exports.JSIndexable = JSIndexable; |
| 1399 exports.JSMutableIndexable = JSMutableIndexable; | 1414 exports.JSMutableIndexable = JSMutableIndexable; |
| 1400 exports.JSObject = JSObject; | 1415 exports.JSObject = JSObject; |
| 1401 exports.JavaScriptObject = JavaScriptObject; | 1416 exports.JavaScriptObject = JavaScriptObject; |
| 1402 exports.PlainJavaScriptObject = PlainJavaScriptObject; | 1417 exports.PlainJavaScriptObject = PlainJavaScriptObject; |
| 1403 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; | 1418 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; |
| 1404 exports.JSArray = JSArray; | |
| 1405 exports.JSArray$ = JSArray$; | |
| 1406 exports.JSMutableArray = JSMutableArray; | |
| 1407 exports.JSMutableArray$ = JSMutableArray$; | |
| 1408 exports.JSFixedArray = JSFixedArray; | |
| 1409 exports.JSFixedArray$ = JSFixedArray$; | |
| 1410 exports.JSExtendableArray = JSExtendableArray; | |
| 1411 exports.JSExtendableArray$ = JSExtendableArray$; | |
| 1412 exports.JSNumber = JSNumber; | |
| 1413 exports.JSInt = JSInt; | |
| 1414 exports.JSDouble = JSDouble; | |
| 1415 exports.JSPositiveInt = JSPositiveInt; | |
| 1416 exports.JSUInt32 = JSUInt32; | |
| 1417 exports.JSUInt31 = JSUInt31; | |
| 1418 exports.JSString = JSString; | |
| 1419 })(_interceptors || (_interceptors = {})); | 1419 })(_interceptors || (_interceptors = {})); |
| OLD | NEW |