Chromium Code Reviews| Index: lib/src/codegen/js_names.dart |
| diff --git a/lib/src/codegen/js_names.dart b/lib/src/codegen/js_names.dart |
| index c84991f6be1f40d124e284be69edac8ded985dc3..a07b1f727a1b8ae2060996feddda83e804c85b39 100644 |
| --- a/lib/src/codegen/js_names.dart |
| +++ b/lib/src/codegen/js_names.dart |
| @@ -281,6 +281,12 @@ bool invalidVariableName(String keyword, {bool strictMode: true}) { |
| case "static": |
| case "yield": |
| return strictMode; |
| + |
| + // Node refuses these: |
| + case "async": |
| + case "dynamic": |
| + case "void": |
| + return true; |
| } |
| return false; |
| } |