Socket
Socket
Sign inDemoInstall

binaryen

Package Overview
Dependencies
Maintainers
2
Versions
1533
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binaryen - npm Package Compare versions

Comparing version 38.0.0-nightly.20171031 to 38.0.0-nightly.20171102

1

index.d.ts

@@ -213,2 +213,3 @@ declare module binaryen {

optimize(): void;
runPasses(passes: string[]): void;
autoDrop(): void;

@@ -215,0 +216,0 @@ interpret(): void;

2

package-lock.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc