wat4wasm 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/test-sub.wat DELETED
@@ -1,4 +0,0 @@
1
-
2
-
3
- (func $test/test-sub-wat
4
- )
package/test/test.wat DELETED
@@ -1,64 +0,0 @@
1
- (module
2
- (data $module "wasm://boot.wat")
3
- (data $script "file://test_worker.js")
4
-
5
- (include "test-sub.wat")
6
-
7
- (main $init
8
- (text "me") i32(1) f32(2.2) i64(4) f64(1)
9
- (console $warn<ext.i32.f32.i64.f64>)
10
-
11
- (async
12
- (reflect $apply<ext.ext.ext>ext
13
- (ref.extern $self.WebAssembly.instantiate<ext>)
14
- (ref.extern $self.WebAssembly<ext>)
15
- (array $of<ext.ext>ext
16
- (data.view $module)
17
- (self)
18
- )
19
- )
20
- (then $oninstance
21
- (param $instantiate <Object>)
22
-
23
- (console $log<ext.ext>
24
- (reflect $get<ext.ext>ext (this) (text "module"))
25
- (reflect $get<ext.ext>ext (this) (text "instance"))
26
- )
27
- )
28
- (catch ref.func $onwasmfailure)
29
- (finally $finallyblock
30
- (console $log<ext> (self))
31
- )
32
- )
33
- )
34
-
35
- (func $onwasmfailure
36
- (param $error externref)
37
-
38
- (console $error<ext.ext.ext>
39
- (local.get $error)
40
- (lget $error)
41
- (this)
42
- )
43
- )
44
- )
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
@@ -1 +0,0 @@
1
- console.log(self)