binaryen
Advanced tools
Comparing version 38.0.0-nightly.20171031 to 38.0.0-nightly.20171102
@@ -213,2 +213,3 @@ declare module binaryen { | ||
optimize(): void; | ||
runPasses(passes: string[]): void; | ||
autoDrop(): void; | ||
@@ -215,0 +216,0 @@ interpret(): void; |
{ | ||
"name": "binaryen", | ||
"version": "38.0.0-nightly.20171031", | ||
"version": "38.0.0-nightly.20171102", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "binaryen", | ||
"description": "JavaScript version of Binaryen, a compiler infrastructure and toolchain library for WebAssembly.", | ||
"version": "38.0.0-nightly.20171031", | ||
"version": "38.0.0-nightly.20171102", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -19,3 +19,3 @@ binaryen.js | ||
var myModule = new binaryen.Module(); | ||
myModule.addFunction("main", mod.addFunctionType("i", binaryen.i32, []), [], mod.return(mod.i32.const(0))); | ||
myModule.addFunction("main", myModule.addFunctionType("i", binaryen.i32, []), [], myModule.return(myModule.i32.const(0))); | ||
myModule.addExport("main", "main"); | ||
@@ -74,3 +74,4 @@ | ||
* `validate()`: Validates the module, checking it for correctness. Returns `1` if the module is valid, otherwise `0`. | ||
* `optimize()`: Optimize the module. | ||
* `optimize()`: Runs the standard optimization passes on the module. | ||
* `runPasses(passes)`: Runs the specified passes on the module. | ||
* `autoDrop()`: Automatically inserts `drop` operations. This lets you not worry about dropping when creating your code. | ||
@@ -77,0 +78,0 @@ * `interpret()`: Run the module in the Binaryen interpreter (creates the module, and calls the start method). Useful for debugging. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2518507
10126
274