binaryen 102.0.0 → 103.0.0
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/README.md +16 -5
- package/bin/package.json +3 -0
- package/bin/wasm-opt +1 -1
- package/bin/wasm2js +2 -0
- package/index.d.ts +458 -158
- package/index.js +13 -355
- package/package.json +16 -13
- package/package-lock.json +0 -579
- package/wasm.d.ts +0 -2
- package/wasm.js +0 -512
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ $> npm install binaryen
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
|
-
|
|
18
|
+
import binaryen from "binaryen";
|
|
19
19
|
|
|
20
20
|
// Create a module with a single function
|
|
21
21
|
var myModule = new binaryen.Module();
|
|
@@ -71,6 +71,10 @@ or you can use one of the [previous versions](https://github.com/AssemblyScript/
|
|
|
71
71
|
|
|
72
72
|
Replace `VERSION` with a [specific version](https://github.com/AssemblyScript/binaryen.js/releases) or omit it (not recommended in production) to use main/latest.
|
|
73
73
|
|
|
74
|
+
### Command line
|
|
75
|
+
|
|
76
|
+
The package includes Node.js builds of [wasm-opt](https://github.com/WebAssembly/binaryen#wasm-opt) and [wasm2js](https://github.com/WebAssembly/binaryen#wasm2js).
|
|
77
|
+
|
|
74
78
|
API
|
|
75
79
|
---
|
|
76
80
|
|
|
@@ -103,6 +107,7 @@ API
|
|
|
103
107
|
- [Multi-value operations 🦄](#multi-value-operations-)
|
|
104
108
|
- [Exception handling operations 🦄](#exception-handling-operations-)
|
|
105
109
|
- [Reference types operations 🦄](#reference-types-operations-)
|
|
110
|
+
- [Bulk memory operations 🦄](#bulk-memory-operations-)
|
|
106
111
|
- [Expression manipulation](#expression-manipulation)
|
|
107
112
|
- [Relooper](#relooper)
|
|
108
113
|
- [Source maps](#source-maps)
|
|
@@ -948,9 +953,9 @@ Creates a call to a function. Note that we must specify the return type here as
|
|
|
948
953
|
|
|
949
954
|
#### [Atomic wait and notify operations](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#wait-and-notify-operators) 🦄
|
|
950
955
|
|
|
951
|
-
* Module#
|
|
952
|
-
* Module#
|
|
953
|
-
* Module
|
|
956
|
+
* Module#memory.**atomic.wait32**(ptr: `ExpressionRef`, expected: `ExpressionRef`, timeout: `ExpressionRef`): `ExpressionRef`
|
|
957
|
+
* Module#memory.**atomic.wait64**(ptr: `ExpressionRef`, expected: `ExpressionRef`, timeout: `ExpressionRef`): `ExpressionRef`
|
|
958
|
+
* Module#memory**atomic.notify**(ptr: `ExpressionRef`, notifyCount: `ExpressionRef`): `ExpressionRef`
|
|
954
959
|
* Module#**atomic.fence**(): `ExpressionRef`
|
|
955
960
|
|
|
956
961
|
#### [Sign extension operations](https://github.com/WebAssembly/sign-extension-ops/blob/master/proposals/sign-extension-ops/Overview.md) 🦄
|
|
@@ -981,7 +986,7 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip
|
|
|
981
986
|
|
|
982
987
|
#### [Exception handling operations](https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md) 🦄
|
|
983
988
|
|
|
984
|
-
* Module#**try**(body: `ExpressionRef`,
|
|
989
|
+
* Module#**try**(name: `string`, body: `ExpressionRef`, catchTags: `string[]`, catchBodies: `ExpressionRef[]`, delegateTarget: `string`): `ExpressionRef`
|
|
985
990
|
* Module#**throw**(event: `string`, operands: `ExpressionRef[]`): `ExpressionRef`
|
|
986
991
|
* Module#**rethrow**(exnref: `ExpressionRef`): `ExpressionRef`
|
|
987
992
|
* Module#**br_on_exn**(label: `string`, event: `string`, exnref: `ExpressionRef`): `ExpressionRef`
|
|
@@ -998,6 +1003,12 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip
|
|
|
998
1003
|
* Module#ref.**is_null**(value: `ExpressionRef`): `ExpressionRef`
|
|
999
1004
|
* Module#ref.**func**(name: `string`): `ExpressionRef`
|
|
1000
1005
|
|
|
1006
|
+
#### [Bulk memory operations](https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md) 🦄
|
|
1007
|
+
|
|
1008
|
+
* Module#memory.**init**(segment: `number`, dest: `ExpressionRef`, offset: `ExpressionRef`, size: `ExpressionRef`): `ExpressionRef`
|
|
1009
|
+
* Module#memory.**copy**(dest: `ExpressionRef`, source: `ExpressionRef`, size: `ExpressionRef`): `ExpressionRef`
|
|
1010
|
+
* Module#memory.**fill**(dest: `ExpressionRef`, value: `ExpressionRef`, size: `ExpressionRef`): `ExpressionRef`
|
|
1011
|
+
|
|
1001
1012
|
### Expression manipulation
|
|
1002
1013
|
|
|
1003
1014
|
* **getExpressionId**(expr: `ExpressionRef`): `ExpressionId`<br />
|
package/bin/package.json
ADDED