Skip to content

Commit c881fde

Browse files
authored
[WasmFS] Fix bigint issue on test_wasm2c_sandboxing on WasmFS (#17618)
1 parent a5f7b1c commit c881fde

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_core.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6940,6 +6940,12 @@ def test_autodebug_wasm(self):
69406940
'none': ('none',),
69416941
})
69426942
def test_wasm2c_sandboxing(self, mode):
6943+
if self.get_setting('WASMFS'):
6944+
# wasm2c disables JS legalization since we are building in standalone
6945+
# mode. this happens to work without wasmfs, but with wasmfs we get the
6946+
# time when we create/update a file, which uses clock_time_get that has an
6947+
# i64 param. For such an import to work we need wasm-bigint support.
6948+
self.node_args.append('--experimental-wasm-bigint')
69436949
if not can_do_standalone(self):
69446950
return self.skipTest('standalone mode not supported')
69456951
self.set_setting('STANDALONE_WASM')

0 commit comments

Comments
 (0)