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

Unified Diff: tool/input_sdk/lib/js/dart2js/js_dart2js.dart

Issue 1936693002: Revert "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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/js/dart2js/js_dart2js.dart
diff --git a/tool/input_sdk/lib/js/dart2js/js_dart2js.dart b/tool/input_sdk/lib/js/dart2js/js_dart2js.dart
index f9f18e09e56237d1842b15ac7006b936729218a2..4169bed09284d98d15d9616f6f3033bfa6dd444d 100644
--- a/tool/input_sdk/lib/js/dart2js/js_dart2js.dart
+++ b/tool/input_sdk/lib/js/dart2js/js_dart2js.dart
@@ -317,8 +317,7 @@ class JsArray<E> extends JsObject with ListMixin<E> {
/**
* Creates a new JavaScript array.
*/
- // TODO(vsm): Making this a factory to workaround #537.
- factory JsArray() { return new JsArray._fromJs([]); }
+ JsArray() : super._fromJs([]);
/**
* Creates a new JavaScript array and initializes it to the contents of
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698