Browse Source

[js] Add "require" to pseudo-keywords list so a local var with the same name doesn't override the global "require" function.

Dan Korostelev 11 năm trước cách đây
mục cha
commit
3e72075eee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      genjs.ml

+ 1 - 1
genjs.ml

@@ -107,7 +107,7 @@ let kwds2 =
 		"Infinity"; "NaN"; "decodeURI"; "decodeURIComponent"; "encodeURI"; "encodeURIComponent";
 		"Infinity"; "NaN"; "decodeURI"; "decodeURIComponent"; "encodeURI"; "encodeURIComponent";
 		"escape"; "eval"; "isFinite"; "isNaN"; "parseFloat"; "parseInt"; "undefined"; "unescape";
 		"escape"; "eval"; "isFinite"; "isNaN"; "parseFloat"; "parseInt"; "undefined"; "unescape";
 
 
-		"JSON"; "Number"; "Object"; "console"; "window";
+		"JSON"; "Number"; "Object"; "console"; "window"; "require";
 	];
 	];
 	h
 	h