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

Unified Diff: lib/runtime/dart_sdk.js

Issue 1933383002: Workaround #537 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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:
Download patch
« no previous file with comments | « no previous file | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 1cbda8bd0614d3f46a886f619f5036d6ad1f65a0..45ce2ea67351441c3a0a78c4b10c81ab405032a2 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -29178,8 +29178,8 @@ dart_library.library('dart_sdk', null, /* Imports */[
const _checkInsertIndex = Symbol('_checkInsertIndex');
js.JsArray$ = dart.generic(E => {
class JsArray extends dart.mixin(js.JsObject, collection.ListMixin$(E)) {
- JsArray() {
- super._fromJs([]);
+ static new() {
+ return new (js.JsArray$(E))._fromJs([]);
}
from(other) {
super._fromJs((() => {
@@ -29280,7 +29280,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
dart.defineNamedConstructor(JsArray, '_fromJs');
dart.setSignature(JsArray, {
constructors: () => ({
- JsArray: [js.JsArray$(E), []],
+ new: [js.JsArray$(E), []],
from: [js.JsArray$(E), [core.Iterable$(E)]],
_fromJs: [js.JsArray$(E), [dart.dynamic]]
}),
« no previous file with comments | « no previous file | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698