Skip to content

Commit 1df6084

Browse files
committed
fix(node 10): fix compatibility for node v10 πŸ”’πŸššπŸ“·
- fix security issue by using Buffer.from - remove negative snapshot test in error.test.js - change extension wasm file from rust to reflect file extension of rust (.rs)
1 parent 1547ca4 commit 1df6084

File tree

7 files changed

+130
-57403
lines changed

7 files changed

+130
-57403
lines changed

β€Žsrc/index.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ export default function loader(source) {
6565
setDebugInfo(options.debug || false);
6666
wasmModule.optimize();
6767

68-
return Buffer(wasmModule.emitBinary());
68+
return Buffer.from(wasmModule.emitBinary());
6969
}

β€Žtest/__snapshots__/error.test.js.snapβ€Ž

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
Β (0)