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

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

Issue 1486473002: Convert dart_utils.js to input_sdk/lib/_internal/utils.dart (#310) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years 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', 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 dart.defineLazyProperties(exports, { 10 dart.defineLazyProperties(exports, {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 let _checkIndex = Symbol('_checkIndex'); 169 let _checkIndex = Symbol('_checkIndex');
170 let _checkInsertIndex = Symbol('_checkInsertIndex'); 170 let _checkInsertIndex = Symbol('_checkInsertIndex');
171 let JsArray$ = dart.generic(function(E) { 171 let JsArray$ = dart.generic(function(E) {
172 class JsArray extends dart.mixin(JsObject, collection.ListMixin$(E)) { 172 class JsArray extends dart.mixin(JsObject, collection.ListMixin$(E)) {
173 JsArray() { 173 JsArray() {
174 super._fromJs([]); 174 super._fromJs([]);
175 } 175 }
176 from(other) { 176 from(other) {
177 super._fromJs((() => { 177 super._fromJs((() => {
178 let _ = []; 178 let _ = [];
179 _[dartx.addAll](other[dartx.map](dart.as(_convertToJS, __CastType0))); 179 _[dartx.addAll](other[dartx.map](dart.as(_convertToJS, __CastType0$(E) )));
180 return _; 180 return _;
181 })()); 181 })());
182 } 182 }
183 _fromJs(jsObject) { 183 _fromJs(jsObject) {
184 super._fromJs(jsObject); 184 super._fromJs(jsObject);
185 } 185 }
186 [_checkIndex](index) { 186 [_checkIndex](index) {
187 if (typeof index == 'number' && (dart.notNull(index) < 0 || dart.notNull (index) >= dart.notNull(this.length))) { 187 if (typeof index == 'number' && (dart.notNull(index) < 0 || dart.notNull (index) >= dart.notNull(this.length))) {
188 dart.throw(new core.RangeError.range(index, 0, this.length)); 188 dart.throw(new core.RangeError.range(index, 0, this.length));
189 } 189 }
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 }); 421 });
422 let __CastType0 = __CastType0$(); 422 let __CastType0 = __CastType0$();
423 // Exports: 423 // Exports:
424 exports.JsObject = JsObject; 424 exports.JsObject = JsObject;
425 exports.JsFunction = JsFunction; 425 exports.JsFunction = JsFunction;
426 exports.JsArray$ = JsArray$; 426 exports.JsArray$ = JsArray$;
427 exports.JsArray = JsArray; 427 exports.JsArray = JsArray;
428 exports.allowInterop = allowInterop; 428 exports.allowInterop = allowInterop;
429 exports.allowInteropCaptureThis = allowInteropCaptureThis; 429 exports.allowInteropCaptureThis = allowInteropCaptureThis;
430 }); 430 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698