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

Unified Diff: tool/input_sdk/private/js_array.dart

Issue 1138533003: fixes #175, fixed arrays (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: warn Created 5 years, 7 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 | « test/generated_sdk/lib/_internal/compiler/js_lib/js_array.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/js_array.dart
diff --git a/tool/input_sdk/private/js_array.dart b/tool/input_sdk/private/js_array.dart
index c9aab5f74eea2f6acccabea2f56a094e5e2916cd..fae79523869fa28d40737ebf16ce83598a065c05 100644
--- a/tool/input_sdk/private/js_array.dart
+++ b/tool/input_sdk/private/js_array.dart
@@ -85,7 +85,7 @@ class JSArray<E> implements List<E>, JSIndexable {
}
checkGrowable(reason) {
- if (this is !JSExtendableArray) {
+ if (JS('bool', r'#.fixed$length', this)) {
throw new UnsupportedError(reason);
}
}
« no previous file with comments | « test/generated_sdk/lib/_internal/compiler/js_lib/js_array.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698