Skip to content

Commit

Permalink
[js] Add "require" to pseudo-keywords list so a local var with the sa…
Browse files Browse the repository at this point in the history
…me name doesn't override the global "require" function.
  • Loading branch information
nadako committed May 13, 2014
1 parent eddd3de commit 3e72075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genjs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ let kwds2 =
"Infinity"; "NaN"; "decodeURI"; "decodeURIComponent"; "encodeURI"; "encodeURIComponent";
"escape"; "eval"; "isFinite"; "isNaN"; "parseFloat"; "parseInt"; "undefined"; "unescape";

"JSON"; "Number"; "Object"; "console"; "window";
"JSON"; "Number"; "Object"; "console"; "window"; "require";
];
h

Expand Down

0 comments on commit 3e72075

Please sign in to comment.