GetProperty (QName ((Namespace ""),"1"));
PopScope])
(compile (Let (["x",Int 1;"y",Int 2],Block [Var "x";Var "y"])))
+
+test call =
+ assert_equal
+ (result [NewFunction (result [PushInt 42]) ])
+ (compile (Method ("",Block [Int 42])))
assert_equal [Block [Int 1;Int 2]] @@
compile_string "(begin 1 2)"
+test lammda =
+ assert_equal [Method ("",Block [Int 42])] @@
+ compile_string "(lambda () 42)"
GetProperty of Cpool.multiname: op=0x66; const=multiname arg0; args=fun (cmap,_) ->[multiname_get arg0 cmap]
ReturnVoid: op=0x47
+ReturnValue: op=0x48; stack= ~-1
FindPropStrict of Cpool.multiname: op=0x5D; stack=1; const=multiname arg0; args=fun (cmap,_) ->[multiname_get arg0 cmap]
PushUInt of int: op=0x2E; stack=1; const=uint arg0; args=fun (cmap,_) -> [uint_get arg0 cmap]
CallPropLex of Cpool.multiname * int: op=0x4c; stack= 1-arg1; args=fun (cmap,_) ->[multiname_get arg0 cmap;Bytes.u30 arg1]