Skip to content

Commit 2e0dc48

Browse files
authored
fix jshooks output format (#36)
1 parent 0b02e30 commit 2e0dc48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c2wasm-api/src/jshooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function serialize_file_data(filename: string, compress: boolean) {
9999
.match(/0x[a-fA-F0-9]+/g)
100100
?.map(hex => hex.replace('0x', ''))
101101
.join('') || '';
102-
content = Buffer.from(hexData)
102+
content = Buffer.from(hexData, 'hex')
103103
if (compress) {
104104
content = deflateSync(content);
105105
}

0 commit comments

Comments
 (0)