wat4wasm 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean.js +1 -1
- package/package.json +1 -1
- package/wat4wasm +1 -1
package/lib/clean.js
CHANGED
|
@@ -81,7 +81,7 @@ export default function (wat) {
|
|
|
81
81
|
wat = maskSet.restore();
|
|
82
82
|
wat = helpers.prepend(wat,
|
|
83
83
|
imports
|
|
84
|
-
.filter(b => new RegExp(`\\${b.$name}\(\\s|\\)\)`).test(wat))
|
|
84
|
+
.filter(b => new RegExp(`\\${b.$name}\(\\s|\\)\)`).test(wat) || b.toString().match(/(memory|table)/))
|
|
85
85
|
.sort((a, b) => helpers.generateId(a) - helpers.generateId(b))
|
|
86
86
|
.map(b => b.toString())
|
|
87
87
|
.join("\n")
|
package/package.json
CHANGED
package/wat4wasm
CHANGED
|
@@ -1733,7 +1733,7 @@ function clean (wat) {
|
|
|
1733
1733
|
wat = maskSet.restore();
|
|
1734
1734
|
wat = helpers.prepend(wat,
|
|
1735
1735
|
imports
|
|
1736
|
-
.filter(b => new RegExp(`\\${b.$name}\(\\s|\\)\)`).test(wat))
|
|
1736
|
+
.filter(b => new RegExp(`\\${b.$name}\(\\s|\\)\)`).test(wat) || b.toString().match(/(memory|table)/))
|
|
1737
1737
|
.sort((a, b) => helpers.generateId(a) - helpers.generateId(b))
|
|
1738
1738
|
.map(b => b.toString())
|
|
1739
1739
|
.join("\n")
|