Index: lib/src/compiler/code_generator.dart |
diff --git a/lib/src/compiler/code_generator.dart b/lib/src/compiler/code_generator.dart |
index b38971079076b5d06ca662c9aa42de913997bfe3..3969091deb2a31d8602eba929acaafc2f8f61844 100644 |
--- a/lib/src/compiler/code_generator.dart |
+++ b/lib/src/compiler/code_generator.dart |
@@ -1053,6 +1053,10 @@ class CodeGenerator extends GeneralizingAstVisitor |
// Create static values list |
var values = new JS.ArrayInitializer(new List<JS.Expression>.from( |
fields.map((f) => js.call('#.#', [id, f.name])))); |
+ |
+ // dart.constList helper internally depends on _interceptors.JSArray. |
+ _declareBeforeUse(_jsArray); |
+ |
result.add(js.statement( |
'#.values = dart.constList(#, #);', [id, values, _emitType(type)])); |