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

Side by Side Diff: lib/src/js/keywords.dart

Issue 1034273003: fix for static methods and names banned in strict mode (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 library js_keywords;
2
3 bool isJsKeyword(String keyword) {
4 switch (keyword) {
5 case "break":
6 case "case":
7 case "catch":
8 case "class":
9 case "const":
10 case "continue":
11 case "debugger":
12 case "default":
13 case "delete":
14 case "do":
15 case "else":
16 case "export":
17 case "extends":
18 case "finally":
19 case "for":
20 case "function":
21 case "if":
22 case "import":
23 case "in":
24 case "instanceof":
25 case "let":
26 case "new":
27 case "return":
28 case "static":
29 case "super":
30 case "switch":
31 case "this":
32 case "throw":
33 case "try":
34 case "typeof":
35 case "var":
36 case "void":
37 case "while":
38 case "with":
39 case "yield":
40 return true;
41 }
42 return false;
43 }
44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698