Browse Source

removed --js-modern (default in 3.0)

Nicolas Cannasse 12 years ago
parent
commit
393d8c8895
3 changed files with 1 additions and 6 deletions
  1. 0 2
      common.ml
  2. 1 1
      genjs.ml
  3. 0 3
      main.ml

+ 0 - 2
common.ml

@@ -170,7 +170,6 @@ module Define = struct
 		| Interp
 		| JavaVer
 		| JsClassic
-		| JsModern
 		| Macro
 		| MacroTimes
 		| NekoSource
@@ -231,7 +230,6 @@ module Define = struct
 		| Interp -> ("interp","The code is compiled to be run with --interp")
 		| JavaVer -> ("java_ver", "<version:5-7> Sets the Java version to be targeted")
 		| JsClassic -> ("js_classic","Don't use a function wrapper and strict mode in JS output")
-		| JsModern -> ("js_modern","Use function wrapper and strict mode in JS output")
 		| Macro -> ("macro","Defined when we compile code in the macro context")
 		| MacroTimes -> ("macro_times","Display per-macro timing when used with --times")
 		| NekoSource -> ("neko_source","Output neko source instead of bytecode")

+ 1 - 1
genjs.ml

@@ -1093,7 +1093,7 @@ let alloc_ctx com =
 			sources_hash = Hashtbl.create 0;
 			mappings = Buffer.create 16;
 		};
-		js_modern = Common.defined com Define.JsModern || (not (Common.defined com Define.JsClassic));
+		js_modern = not (Common.defined com Define.JsClassic);
 		statics = [];
 		inits = [];
 		current = null_class;

+ 0 - 3
main.ml

@@ -993,9 +993,6 @@ try
 			com.foptimize <- false;
 			Common.define com Define.NoOpt;
 		), ": disable code optimizations");
-		("--js-modern", Arg.Unit (fun() ->
-			Common.define com Define.JsModern;
-		), ": wrap JS output in a closure, strict mode, and other upcoming features");
 		("--php-front",Arg.String (fun f ->
 			if com.php_front <> None then raise (Arg.Bad "Multiple --php-front");
 			com.php_front <- Some f;