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

Unified Diff: lib/runtime/dart/core.js

Issue 1649583002: allow JS builtin to be typed as needed (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: lib/runtime/dart/core.js
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js
index dcff44061ca2b1bdd1d4e29c644f502e3ec36c29..073abe8eb145b37c1e6fd5e9ff5c97579bff8d72 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -1358,7 +1358,7 @@ dart_library.library('dart/core', null, /* Imports */[
if (!(typeof length == 'number') || dart.notNull(length) < 0) {
dart.throw(new ArgumentError(`Length must be a non-negative integer: ${length}`));
}
- list = _interceptors.JSArray.markFixedList(dart.as(new Array(length), List$()));
+ list = _interceptors.JSArray.markFixedList(new Array(length));
}
return _interceptors.JSArray$(E).typed(list);
}

Powered by Google App Engine
This is Rietveld 408576698