Skip to content

Commit

Permalink
[WasmFS] Fix bigint issue on test_wasm2c_sandboxing on WasmFS (#17618)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken authored Aug 12, 2022
1 parent a5f7b1c commit c881fde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6940,6 +6940,12 @@ def test_autodebug_wasm(self):
'none': ('none',),
})
def test_wasm2c_sandboxing(self, mode):
if self.get_setting('WASMFS'):
# wasm2c disables JS legalization since we are building in standalone
# mode. this happens to work without wasmfs, but with wasmfs we get the
# time when we create/update a file, which uses clock_time_get that has an
# i64 param. For such an import to work we need wasm-bigint support.
self.node_args.append('--experimental-wasm-bigint')
if not can_do_standalone(self):
return self.skipTest('standalone mode not supported')
self.set_setting('STANDALONE_WASM')
Expand Down

0 comments on commit c881fde

Please sign in to comment.