Legalize casting object literals to classes when linting

This commit is contained in:
dcodeIO
2018-07-14 15:00:07 +02:00
parent 29081b6323
commit c636eddcd2
6 changed files with 78 additions and 10 deletions

View File

@ -275,14 +275,33 @@
(call $~lib/env/abort
(i32.const 0)
(i32.const 36)
(i32.const 23)
(i32.const 26)
(i32.const 2)
)
(unreachable)
)
)
)
(func $start (; 6 ;) (type $v)
(func $object-literal/Foo2#test (; 6 ;) (type $iv) (param $0 i32)
(if
(i32.ne
(i32.load
(get_local $0)
)
(i32.const 3)
)
(block
(call $~lib/env/abort
(i32.const 0)
(i32.const 36)
(i32.const 21)
(i32.const 4)
)
(unreachable)
)
)
)
(func $start (; 7 ;) (type $v)
(local $0 i32)
(set_global $~lib/allocator/arena/startOffset
(i32.and
@ -322,5 +341,16 @@
(call $object-literal/bar2
(get_local $0)
)
(i32.store
(tee_local $0
(call $~lib/allocator/arena/allocate_memory
(i32.const 4)
)
)
(i32.const 3)
)
(call $object-literal/Foo2#test
(get_local $0)
)
)
)