@webassemblyjs/helper-wasm-section
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -20,2 +20,4 @@ "use strict"; | ||
var debug = require("debug")("wasm"); | ||
function findLastSection(ast, forSection) { | ||
@@ -54,5 +56,7 @@ var targetSectionId = _helperWasmBytecode.default.sections[forSection]; // $FlowIgnore: metadata can not be empty | ||
end = start; | ||
debug("create empty section=%s start=%d end=%d", section, start, end); | ||
} else { | ||
start = lastSection.startOffset + lastSection.size + 1; | ||
end = start; | ||
debug("create empty section=%s after=%s start=%d end=%d", section, lastSection.section, start, end); | ||
} | ||
@@ -59,0 +63,0 @@ |
{ | ||
"name": "@webassemblyjs/helper-wasm-section", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "", | ||
@@ -19,10 +19,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@webassemblyjs/ast": "1.2.0", | ||
"@webassemblyjs/helper-buffer": "1.2.0", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.2.0", | ||
"@webassemblyjs/wasm-gen": "1.2.0" | ||
"@webassemblyjs/ast": "1.2.1", | ||
"@webassemblyjs/helper-buffer": "1.2.1", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.2.1", | ||
"@webassemblyjs/wasm-gen": "1.2.1" | ||
}, | ||
"devDependencies": { | ||
"@webassemblyjs/wasm-parser": "1.2.0" | ||
"@webassemblyjs/wasm-parser": "1.2.1" | ||
} | ||
} |
@@ -8,2 +8,3 @@ // @flow | ||
const t = require("@webassemblyjs/ast"); | ||
const debug = require("debug")("wasm"); | ||
@@ -53,5 +54,15 @@ type Res = { uint8Buffer: Uint8Array, sectionMetadata: SectionMetadata }; | ||
end = start; | ||
debug("create empty section=%s start=%d end=%d", section, start, end); | ||
} else { | ||
start = lastSection.startOffset + lastSection.size + 1; | ||
end = start; | ||
debug( | ||
"create empty section=%s after=%s start=%d end=%d", | ||
section, | ||
lastSection.section, | ||
start, | ||
end | ||
); | ||
} | ||
@@ -58,0 +69,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
12844
336
+ Added@webassemblyjs/ast@1.2.1(transitive)
+ Added@webassemblyjs/helper-buffer@1.2.1(transitive)
+ Added@webassemblyjs/helper-leb128@1.2.1(transitive)
+ Added@webassemblyjs/helper-wasm-bytecode@1.2.1(transitive)
+ Added@webassemblyjs/wasm-gen@1.2.1(transitive)
+ Added@webassemblyjs/wasm-parser@1.2.1(transitive)
+ Added@webassemblyjs/wast-parser@1.2.1(transitive)
+ Addedwebassemblyjs@1.2.1(transitive)
- Removed@webassemblyjs/ast@1.2.0(transitive)
- Removed@webassemblyjs/helper-buffer@1.2.0(transitive)
- Removed@webassemblyjs/helper-leb128@1.2.0(transitive)
- Removed@webassemblyjs/helper-wasm-bytecode@1.2.0(transitive)
- Removed@webassemblyjs/wasm-gen@1.2.0(transitive)
- Removed@webassemblyjs/wasm-parser@1.2.0(transitive)
- Removed@webassemblyjs/wast-parser@1.2.0(transitive)
- Removedwebassemblyjs@1.2.0(transitive)
Updated@webassemblyjs/ast@1.2.1