@webassemblyjs/helper-wasm-section
Advanced tools
Comparing version 1.2.8 to 1.3.0
@@ -30,3 +30,8 @@ "use strict"; | ||
for (var i = 0, len = moduleSections.length; i < len; i++) { | ||
var section = moduleSections[i]; | ||
var section = moduleSections[i]; // Ignore custom section since they can actually occur everywhere | ||
if (section.section === "custom") { | ||
continue; | ||
} | ||
var sectionId = _helperWasmBytecode.default.sections[section.section]; | ||
@@ -41,2 +46,4 @@ | ||
} | ||
return lastSection; | ||
} | ||
@@ -48,7 +55,7 @@ | ||
var start, end; | ||
/** | ||
* It's the first section | ||
*/ | ||
if (lastSection == null) { | ||
/** | ||
* It's the first section | ||
*/ | ||
if (lastSection == null || lastSection.section === "custom") { | ||
start = 8 | ||
@@ -58,3 +65,3 @@ /* wasm header size */ | ||
end = start; | ||
debug("create empty section=%s start=%d end=%d", section, start, end); | ||
debug("create empty section=%s first", section); | ||
} else { | ||
@@ -61,0 +68,0 @@ start = lastSection.startOffset + lastSection.size.value + 1; |
{ | ||
"name": "@webassemblyjs/helper-wasm-section", | ||
"version": "1.2.8", | ||
"version": "1.3.0", | ||
"description": "", | ||
@@ -19,10 +19,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@webassemblyjs/ast": "1.2.8", | ||
"@webassemblyjs/helper-buffer": "1.2.8", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.2.8", | ||
"@webassemblyjs/wasm-gen": "1.2.8" | ||
"@webassemblyjs/ast": "1.3.0", | ||
"@webassemblyjs/helper-buffer": "1.3.0", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.3.0", | ||
"@webassemblyjs/wasm-gen": "1.3.0" | ||
}, | ||
"devDependencies": { | ||
"@webassemblyjs/wasm-parser": "1.2.8" | ||
"@webassemblyjs/wasm-parser": "1.3.0" | ||
} | ||
} |
@@ -26,2 +26,8 @@ // @flow | ||
const section = moduleSections[i]; | ||
// Ignore custom section since they can actually occur everywhere | ||
if (section.section === "custom") { | ||
continue; | ||
} | ||
const sectionId = constants.sections[section.section]; | ||
@@ -36,2 +42,4 @@ | ||
} | ||
return lastSection; | ||
} | ||
@@ -49,10 +57,10 @@ | ||
if (lastSection == null) { | ||
/** | ||
* It's the first section | ||
*/ | ||
/** | ||
* It's the first section | ||
*/ | ||
if (lastSection == null || lastSection.section === "custom") { | ||
start = 8 /* wasm header size */; | ||
end = start; | ||
debug("create empty section=%s start=%d end=%d", section, start, end); | ||
debug("create empty section=%s first", section); | ||
} else { | ||
@@ -59,0 +67,0 @@ start = lastSection.startOffset + lastSection.size.value + 1; |
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
25990
10
718
+ Added@webassemblyjs/ast@1.3.0(transitive)
+ Added@webassemblyjs/floating-point-hex-parser@1.3.0(transitive)
+ Added@webassemblyjs/helper-buffer@1.3.0(transitive)
+ Added@webassemblyjs/helper-code-frame@1.3.0(transitive)
+ Added@webassemblyjs/helper-fsm@1.3.0(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.3.0(transitive)
+ Added@webassemblyjs/leb128@1.3.0(transitive)
+ Added@webassemblyjs/validation@1.3.0(transitive)
+ Added@webassemblyjs/wasm-gen@1.3.0(transitive)
+ Added@webassemblyjs/wasm-parser@1.3.0(transitive)
+ Added@webassemblyjs/wast-parser@1.3.0(transitive)
+ Added@webassemblyjs/wast-printer@1.3.0(transitive)
+ Addedwebassemblyjs@1.3.0(transitive)
- Removed@webassemblyjs/ast@1.2.8(transitive)
- Removed@webassemblyjs/floating-point-hex-parser@1.2.8(transitive)
- Removed@webassemblyjs/helper-buffer@1.2.8(transitive)
- Removed@webassemblyjs/helper-code-frame@1.2.8(transitive)
- Removed@webassemblyjs/helper-fsm@1.2.8(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.2.8(transitive)
- Removed@webassemblyjs/leb128@1.2.8(transitive)
- Removed@webassemblyjs/validation@1.2.8(transitive)
- Removed@webassemblyjs/wasm-gen@1.2.8(transitive)
- Removed@webassemblyjs/wasm-parser@1.2.8(transitive)
- Removed@webassemblyjs/wast-parser@1.2.8(transitive)
- Removed@webassemblyjs/wast-printer@1.2.8(transitive)
- Removedwebassemblyjs@1.2.8(transitive)
Updated@webassemblyjs/ast@1.3.0