Nicolas Cannasse 13 年之前
父节点
当前提交
3beb5fa4d4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      interp.ml

+ 2 - 1
interp.ml

@@ -2424,6 +2424,7 @@ let rec eval ctx (e,p) =
 		| Null -> (fun() -> VNull)
 		| This -> (fun() -> ctx.vthis)
 		| Int i -> (fun() -> VInt i)
+		| Int32 i -> (fun() -> assert false)
 		| Float f ->
 			let f = float_of_string f in
 			(fun() -> VFloat f)
@@ -3210,7 +3211,7 @@ let create com api =
 	] in
 	let ctx = {
 		com = com;
-		gen = Genneko.new_context com true;
+		gen = Genneko.new_context com 2 true;
 		types = Hashtbl.create 0;
 		error = false;
 		error_proto = { ofields = [||]; oproto = None };