| OLD | NEW |
| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 let length = dart.notNull(end) - dart.notNull(start); | 257 let length = dart.notNull(end) - dart.notNull(start); |
| 258 if (length == 0) return; | 258 if (length == 0) return; |
| 259 if (dart.notNull(skipCount) < 0) dart.throw(new core.ArgumentError(skipC
ount)); | 259 if (dart.notNull(skipCount) < 0) dart.throw(new core.ArgumentError(skipC
ount)); |
| 260 let args = dart.list([start, length], core.int); | 260 let args = dart.list([start, length], core.int); |
| 261 args[dartx.addAll](iterable[dartx.skip](skipCount)[dartx.take](length)); | 261 args[dartx.addAll](iterable[dartx.skip](skipCount)[dartx.take](length)); |
| 262 this.callMethod('splice', args); | 262 this.callMethod('splice', args); |
| 263 } | 263 } |
| 264 sort(compare) { | 264 sort(compare) { |
| 265 if (compare === void 0) compare = null; | 265 if (compare === void 0) compare = null; |
| 266 dart.as(compare, dart.functionType(core.int, [E, E])); | 266 dart.as(compare, dart.functionType(core.int, [E, E])); |
| 267 this.callMethod('sort', dart.as(compare == null ? [] : dart.list([compar
e], dart.functionType(core.int, [E, E])), core.List)); | 267 this.callMethod('sort', compare == null ? [] : dart.list([compare], dart
.functionType(core.int, [E, E]))); |
| 268 } | 268 } |
| 269 } | 269 } |
| 270 dart.defineNamedConstructor(JsArray, 'from'); | 270 dart.defineNamedConstructor(JsArray, 'from'); |
| 271 dart.defineNamedConstructor(JsArray, '_fromJs'); | 271 dart.defineNamedConstructor(JsArray, '_fromJs'); |
| 272 dart.setSignature(JsArray, { | 272 dart.setSignature(JsArray, { |
| 273 constructors: () => ({ | 273 constructors: () => ({ |
| 274 JsArray: [JsArray$(E), []], | 274 JsArray: [JsArray$(E), []], |
| 275 from: [JsArray$(E), [core.Iterable$(E)]], | 275 from: [JsArray$(E), [core.Iterable$(E)]], |
| 276 _fromJs: [JsArray$(E), [dart.dynamic]] | 276 _fromJs: [JsArray$(E), [dart.dynamic]] |
| 277 }), | 277 }), |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 404 } |
| 405 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); | 405 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); |
| 406 // Exports: | 406 // Exports: |
| 407 exports.JsObject = JsObject; | 407 exports.JsObject = JsObject; |
| 408 exports.JsFunction = JsFunction; | 408 exports.JsFunction = JsFunction; |
| 409 exports.JsArray$ = JsArray$; | 409 exports.JsArray$ = JsArray$; |
| 410 exports.JsArray = JsArray; | 410 exports.JsArray = JsArray; |
| 411 exports.allowInterop = allowInterop; | 411 exports.allowInterop = allowInterop; |
| 412 exports.allowInteropCaptureThis = allowInteropCaptureThis; | 412 exports.allowInteropCaptureThis = allowInteropCaptureThis; |
| 413 }); | 413 }); |
| OLD | NEW |