Skip to content

Commit bcfa728

Browse files
committed
fix spidermonkify
1 parent e9ba8d7 commit bcfa728

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

scripts/spidermonkify.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ def fix(js, before, after):
5151
open(js_target, 'w').write(js)
5252
shutil.copyfile(wast_target + '.mappedGlobals', wasm_target + '.mappedGlobals')
5353

54-
# convert to binary using spidermonkey, something like
55-
#mozjs -e 'os.file.writeTypedArrayToFile("moz.wasm",
56-
#new Uint8Array(wasmTextToBinary(os.file.readFile("test/hello_world.wast"))))'
57-
#investigate with
58-
#>>> map(chr, map(ord, open('moz.wasm').read()))
54+
# convert to binary using spidermonkey
55+
'''
56+
using something like
57+
mozjs -e 'os.file.writeTypedArrayToFile("moz.wasm",
58+
new Uint8Array(wasmTextToBinary(os.file.readFile("test/hello_world.wast"))))'
59+
investigate with
60+
>>> map(chr, map(ord, open('moz.wasm').read()))
61+
'''
5962
subprocess.check_call(
6063
emscripten.shared.SPIDERMONKEY_ENGINE +
6164
['-e', 'os.file.writeTypedArrayToFile("' + wasm_target +

0 commit comments

Comments
 (0)