Index: lib/src/codegen/js_codegen.dart |
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart |
index 628d7a1e95a80bb5c7a80475896653929a4c6611..7b01a65dc99404258fc77145e028573463172e79 100644 |
--- a/lib/src/codegen/js_codegen.dart |
+++ b/lib/src/codegen/js_codegen.dart |
@@ -973,7 +973,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ConversionVisitor { |
// TODO(jmesserly): use a dummy setter to indicate writable. |
if (!node.isFinal) { |
methods.add(new JS.Method( |
- new JS.PropertyName(name), js.call('function() {}'), |
+ new JS.PropertyName(name), js.call('function(_) {}'), |
isSetter: true)); |
} |
} |