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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart

Issue 3009623002: fix list_test for strong mode, and fix DDC List constructors (Closed)
Patch Set: update status, one additional fix Created 3 years, 4 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: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
index 91f541ea3cf5789bb0091a2c03ac2ee745ba91be..13d0a3ad42d88ff38422430377d02bb3db3d343f 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
@@ -858,9 +858,9 @@ constList(elements, elementType) => JS('', '''(() => {
let value = map.get($elementType);
if (value) return value;
- value = $setType($elements, ${getGenericClass(JSArray)}($elementType));
- map.set($elementType, value);
- return value;
+ ${getGenericClass(JSArray)}($elementType).unmodifiable($elements);
+ map.set($elementType, elements);
+ return elements;
})()''');
// The following are helpers for Object methods when the receiver

Powered by Google App Engine
This is Rietveld 408576698