Socket
Socket
Sign inDemoInstall

@webassemblyjs/wast-parser

Package Overview
Dependencies
12
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.12 to 1.5.13

28

lib/grammar.js

@@ -890,5 +890,9 @@ "use strict";

eatToken();
}
} // $FlowIgnore
while (token.type !== tokens.closeParen) {
var signatureLength = signature.vector ? Infinity : signature.length;
while (token.type !== tokens.closeParen && ( // $FlowIgnore
token.type === tokens.openParen || signaturePtr < signatureLength)) {
if (token.type === tokens.identifier) {

@@ -905,5 +909,11 @@ args.push(t.identifier(token.value));

} else if (token.type === tokens.number) {
// $FlowIgnore
var valtype = signature[signaturePtr++] || "f64";
args.push(t.numberLiteralFromRaw(token.value, valtype));
args.push( // TODO(sven): refactor the type signature handling
// https://github.com/xtuc/webassemblyjs/pull/129 is a good start
t.numberLiteralFromRaw(token.value, // $FlowIgnore
signature[signaturePtr] || "f64")); // $FlowIgnore
if (!signature.vector) {
++signaturePtr;
}
eatToken();

@@ -1158,3 +1168,9 @@ } else if (token.type === tokens.openParen) {

while (token.type === tokens.openParen) {
while (token.type === tokens.openParen || token.type === tokens.name || token.type === tokens.valtype) {
// Instructions without parens
if (token.type === tokens.name || token.type === tokens.valtype) {
fnBody.push(parseFuncInstr());
continue;
}
eatToken();

@@ -1161,0 +1177,0 @@

{
"name": "@webassemblyjs/wast-parser",
"version": "1.5.12",
"version": "1.5.13",
"description": "WebAssembly text format parser",

@@ -20,7 +20,7 @@ "keywords": [

"dependencies": {
"@webassemblyjs/ast": "1.5.12",
"@webassemblyjs/floating-point-hex-parser": "1.5.12",
"@webassemblyjs/helper-api-error": "1.5.12",
"@webassemblyjs/helper-code-frame": "1.5.12",
"@webassemblyjs/helper-fsm": "1.5.12",
"@webassemblyjs/ast": "1.5.13",
"@webassemblyjs/floating-point-hex-parser": "1.5.13",
"@webassemblyjs/helper-api-error": "1.5.13",
"@webassemblyjs/helper-code-frame": "1.5.13",
"@webassemblyjs/helper-fsm": "1.5.13",
"long": "^3.2.0",

@@ -30,3 +30,3 @@ "mamacro": "^0.0.3"

"devDependencies": {
"@webassemblyjs/helper-test-framework": "1.5.12"
"@webassemblyjs/helper-test-framework": "1.5.13"
},

@@ -33,0 +33,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc