From c881fde312988ed466f0cea2a4a4d1d8e5d7403f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 12 Aug 2022 15:21:12 -0700 Subject: [PATCH] [WasmFS] Fix bigint issue on test_wasm2c_sandboxing on WasmFS (#17618) --- test/test_core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_core.py b/test/test_core.py index 3d5201165101d..85c2571b7c5cc 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -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')