Index: sdk/lib/_internal/js_runtime/lib/core_patch.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/core_patch.dart b/sdk/lib/_internal/js_runtime/lib/core_patch.dart |
index 8a3cc9d17bdb8c9dba3523c1fcdff142b3eafa0e..b5ad1e8314eb5596097e5689cbf1c1d45dbd3311 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/core_patch.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/core_patch.dart |
@@ -340,20 +340,11 @@ class Stopwatch { |
static int _now() => Primitives.timerTicks(); |
} |
-class _ListConstructorSentinel extends JSInt { |
- const _ListConstructorSentinel(); |
-} |
- |
// Patch for List implementation. |
@patch |
class List<E> { |
@patch |
- factory List([int length = const _ListConstructorSentinel()]) { |
- if (length == const _ListConstructorSentinel()) { |
- return new JSArray<E>.emptyGrowable(); |
- } |
- return new JSArray<E>.fixed(length); |
- } |
+ factory List([int length]) = JSArray<E>.list; |
@patch |
factory List.filled(int length, E fill, {bool growable: false}) { |