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

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

Issue 1710583002: Fix tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix hints and reformat 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/collection.js ('k') | lib/src/codegen/assignments_index.dart » ('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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const _checkIndex = Symbol('_checkIndex'); 167 const _checkIndex = Symbol('_checkIndex');
168 const _checkInsertIndex = Symbol('_checkInsertIndex'); 168 const _checkInsertIndex = Symbol('_checkInsertIndex');
169 const JsArray$ = dart.generic(function(E) { 169 const JsArray$ = dart.generic(function(E) {
170 class JsArray extends dart.mixin(JsObject, collection.ListMixin$(E)) { 170 class JsArray extends dart.mixin(JsObject, collection.ListMixin$(E)) {
171 JsArray() { 171 JsArray() {
172 super._fromJs([]); 172 super._fromJs([]);
173 } 173 }
174 from(other) { 174 from(other) {
175 super._fromJs((() => { 175 super._fromJs((() => {
176 let _ = []; 176 let _ = [];
177 _[dartx.addAll](other[dartx.map](dart.as(_convertToJS, __CastType0))); 177 _[dartx.addAll](other[dartx.map](_convertToJS));
178 return _; 178 return _;
179 })()); 179 })());
180 } 180 }
181 _fromJs(jsObject) { 181 _fromJs(jsObject) {
182 super._fromJs(jsObject); 182 super._fromJs(jsObject);
183 } 183 }
184 [_checkIndex](index) { 184 [_checkIndex](index) {
185 if (typeof index == 'number' && (dart.notNull(index) < 0 || dart.notNull (index) >= dart.notNull(this.length))) { 185 if (typeof index == 'number' && (dart.notNull(index) < 0 || dart.notNull (index) >= dart.notNull(this.length))) {
186 dart.throw(new core.RangeError.range(index, 0, this.length)); 186 dart.throw(new core.RangeError.range(index, 0, this.length));
187 } 187 }
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 for (let arg of arguments) { 395 for (let arg of arguments) {
396 args.push(arg); 396 args.push(arg);
397 } 397 }
398 return f(...args); 398 return f(...args);
399 }, core.Function); 399 }, core.Function);
400 exports._interopCaptureThisExpando.set(f, ret); 400 exports._interopCaptureThisExpando.set(f, ret);
401 } 401 }
402 return ret; 402 return ret;
403 } 403 }
404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); 404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]);
405 const __CastType0$ = dart.generic(function(E) {
406 const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(dart .dynamic, [E]));
407 return __CastType0;
408 });
409 let __CastType0 = __CastType0$();
410 // Exports: 405 // Exports:
411 exports.JsObject = JsObject; 406 exports.JsObject = JsObject;
412 exports.JsFunction = JsFunction; 407 exports.JsFunction = JsFunction;
413 exports.JsArray$ = JsArray$; 408 exports.JsArray$ = JsArray$;
414 exports.JsArray = JsArray; 409 exports.JsArray = JsArray;
415 exports.allowInterop = allowInterop; 410 exports.allowInterop = allowInterop;
416 exports.allowInteropCaptureThis = allowInteropCaptureThis; 411 exports.allowInteropCaptureThis = allowInteropCaptureThis;
417 }); 412 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/collection.js ('k') | lib/src/codegen/assignments_index.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698