@webassemblyjs/wast-printer
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -85,3 +85,3 @@ "use strict"; | ||
}); | ||
n.functype.result.forEach(function (result) { | ||
n.functype.results.forEach(function (result) { | ||
out += space; | ||
@@ -296,3 +296,3 @@ out += "("; | ||
n.params.forEach(function (param) { | ||
n.signature.params.forEach(function (param) { | ||
out += space; | ||
@@ -305,3 +305,3 @@ out += "("; | ||
}); | ||
n.results.forEach(function (result) { | ||
n.signature.results.forEach(function (result) { | ||
out += space; | ||
@@ -424,18 +424,29 @@ out += "("; | ||
n.params.forEach(function (param) { | ||
if (n.signature.type === "Signature") { | ||
var signature = n.signature; | ||
signature.params.forEach(function (param) { | ||
out += space; | ||
out += "("; | ||
out += "param"; | ||
out += space; | ||
out += printFuncParam(param); | ||
out += ")"; | ||
}); | ||
signature.results.forEach(function (result) { | ||
out += space; | ||
out += "("; | ||
out += "result"; | ||
out += space; | ||
out += result; | ||
out += ")"; | ||
}); | ||
} else { | ||
var index = n.signature; | ||
out += space; | ||
out += "("; | ||
out += "param"; | ||
out += "type"; | ||
out += space; | ||
out += printFuncParam(param); | ||
out += printIndex(index); | ||
out += ")"; | ||
}); | ||
n.result.forEach(function (result) { | ||
out += space; | ||
out += "("; | ||
out += "result"; | ||
out += space; | ||
out += result; | ||
out += ")"; | ||
}); | ||
} | ||
@@ -442,0 +453,0 @@ if (n.body.length > 0) { |
{ | ||
"name": "@webassemblyjs/wast-printer", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "WebAssembly text format printer", | ||
@@ -20,4 +20,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@webassemblyjs/ast": "1.2.5", | ||
"@webassemblyjs/wast-parser": "1.2.5", | ||
"@webassemblyjs/ast": "1.2.6", | ||
"@webassemblyjs/wast-parser": "1.2.6", | ||
"long": "^3.2.0" | ||
@@ -24,0 +24,0 @@ }, |
@@ -77,3 +77,3 @@ // @flow | ||
n.functype.result.forEach(result => { | ||
n.functype.results.forEach(result => { | ||
out += space; | ||
@@ -305,3 +305,3 @@ out += "("; | ||
n.params.forEach(param => { | ||
n.signature.params.forEach(param => { | ||
out += space; | ||
@@ -316,3 +316,3 @@ out += "("; | ||
n.results.forEach(result => { | ||
n.signature.results.forEach(result => { | ||
out += space; | ||
@@ -454,23 +454,36 @@ out += "("; | ||
n.params.forEach(param => { | ||
out += space; | ||
out += "("; | ||
out += "param"; | ||
out += space; | ||
if (n.signature.type === "Signature") { | ||
const signature = (n.signature: Signature); | ||
signature.params.forEach(param => { | ||
out += space; | ||
out += "("; | ||
out += "param"; | ||
out += space; | ||
out += printFuncParam(param); | ||
out += printFuncParam(param); | ||
out += ")"; | ||
}); | ||
out += ")"; | ||
}); | ||
n.result.forEach(result => { | ||
signature.results.forEach(result => { | ||
out += space; | ||
out += "("; | ||
out += "result"; | ||
out += space; | ||
out += result; | ||
out += ")"; | ||
}); | ||
} else { | ||
const index = (n.signature: Index); | ||
out += space; | ||
out += "("; | ||
out += "result"; | ||
out += "type"; | ||
out += space; | ||
out += result; | ||
out += printIndex(index); | ||
out += ")"; | ||
}); | ||
} | ||
@@ -477,0 +490,0 @@ if (n.body.length > 0) { |
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
31179
1359
+ Added@webassemblyjs/ast@1.2.6(transitive)
+ Added@webassemblyjs/floating-point-hex-parser@1.2.6(transitive)
+ Added@webassemblyjs/helper-code-frame@1.2.6(transitive)
+ Added@webassemblyjs/helper-fsm@1.2.6(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.2.6(transitive)
+ Added@webassemblyjs/leb128@1.2.6(transitive)
+ Added@webassemblyjs/wasm-parser@1.2.6(transitive)
+ Added@webassemblyjs/wast-parser@1.2.6(transitive)
+ Addedwebassemblyjs@1.2.6(transitive)
- Removed@webassemblyjs/ast@1.2.5(transitive)
- Removed@webassemblyjs/floating-point-hex-parser@1.2.5(transitive)
- Removed@webassemblyjs/helper-code-frame@1.2.5(transitive)
- Removed@webassemblyjs/helper-fsm@1.2.5(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.2.5(transitive)
- Removed@webassemblyjs/leb128@1.2.5(transitive)
- Removed@webassemblyjs/wasm-parser@1.2.5(transitive)
- Removed@webassemblyjs/wast-parser@1.2.5(transitive)
- Removedwebassemblyjs@1.2.5(transitive)
Updated@webassemblyjs/ast@1.2.6