Browse Source

ignore :expose when not js_modern

Nicolas Cannasse 13 years ago
parent
commit
54f768d232
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genjs.ml

+ 1 - 1
genjs.ml

@@ -282,7 +282,7 @@ let handle_break ctx e =
 
 
 let handle_expose ctx path meta =
 let handle_expose ctx path meta =
 	let rec loop = function
 	let rec loop = function
-		| (":expose", args, pos) :: l ->
+		| (":expose", args, pos) :: l when ctx.js_modern ->
 			ctx.found_expose <- true;
 			ctx.found_expose <- true;
 			let exposed_path = (match args with
 			let exposed_path = (match args with
 				| [EConst (String s), _] -> s
 				| [EConst (String s), _] -> s