@wasmgroundup/emit 0.2.16 → 0.2.17

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/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ declare const exportdesc: {
27
27
  };
28
28
  declare function module(sections: any): BytecodeFragment;
29
29
  declare const instr: {
30
+ unreachable: number;
30
31
  nop: number;
31
32
  block: number;
32
33
  loop: number;
@@ -40,6 +41,7 @@ declare const instr: {
40
41
  call: number;
41
42
  call_indirect: number;
42
43
  drop: number;
44
+ select: number;
43
45
  local: {
44
46
  get: number;
45
47
  set: number;
package/dist/index.js CHANGED
@@ -97,6 +97,7 @@ function module(sections) {
97
97
  return [magic(), version(), sections];
98
98
  }
99
99
  const instr = {
100
+ unreachable: 0x00,
100
101
  nop: 0x01,
101
102
  block: 0x02,
102
103
  loop: 0x03,
@@ -110,6 +111,7 @@ const instr = {
110
111
  call: 0x10,
111
112
  call_indirect: 0x11,
112
113
  drop: 0x1a,
114
+ select: 0x1b,
113
115
  local: {
114
116
  get: 0x20,
115
117
  set: 0x21,
package/index.ts CHANGED
@@ -127,6 +127,7 @@ function module(sections): BytecodeFragment {
127
127
  }
128
128
 
129
129
  const instr = {
130
+ unreachable: 0x00,
130
131
  nop: 0x01,
131
132
  block: 0x02,
132
133
  loop: 0x03,
@@ -140,6 +141,7 @@ const instr = {
140
141
  call: 0x10,
141
142
  call_indirect: 0x11,
142
143
  drop: 0x1a,
144
+ select: 0x1b,
143
145
 
144
146
  local: {
145
147
  get: 0x20,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wasmgroundup/emit",
3
3
  "description": "A library for creating binary-encoded WebAssembly modules",
4
- "version": "0.2.16",
4
+ "version": "0.2.17",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",