Explorar o código

ignore :expose when not js_modern

Nicolas Cannasse %!s(int64=13) %!d(string=hai) anos
pai
achega
54f768d232
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 rec loop = function
-		| (":expose", args, pos) :: l ->
+		| (":expose", args, pos) :: l when ctx.js_modern ->
 			ctx.found_expose <- true;
 			let exposed_path = (match args with
 				| [EConst (String s), _] -> s