|
25 | 25 | from tools import shared, building, config, webassembly |
26 | 26 | from common import RunnerCore, path_from_root, requires_native_clang, test_file, create_file |
27 | 27 | from common import skip_if, needs_dylink, no_windows, no_mac, is_slow_test, parameterized |
28 | | -from common import env_modify, with_env_modify, disabled, node_pthreads |
| 28 | +from common import env_modify, with_env_modify, disabled, node_pthreads, also_with_wasm_bigint |
29 | 29 | from common import read_file, read_binary, require_v8, require_node |
30 | 30 | from common import NON_ZERO, WEBIDL_BINDER, EMBUILDER |
31 | 31 | import clang_native |
@@ -68,27 +68,6 @@ def decorated(self): |
68 | 68 | return decorated |
69 | 69 |
|
70 | 70 |
|
71 | | -def also_with_wasm_bigint(f): |
72 | | - assert callable(f) |
73 | | - |
74 | | - def metafunc(self, with_bigint): |
75 | | - if with_bigint: |
76 | | - if not self.is_wasm(): |
77 | | - self.skipTest('wasm2js does not support WASM_BIGINT') |
78 | | - if self.get_setting('WASM_BIGINT') is not None: |
79 | | - self.skipTest('redundant in bigint test config') |
80 | | - self.set_setting('WASM_BIGINT') |
81 | | - self.require_node() |
82 | | - self.node_args.append('--experimental-wasm-bigint') |
83 | | - f(self) |
84 | | - else: |
85 | | - f(self) |
86 | | - |
87 | | - metafunc._parameterize = {'': (False,), |
88 | | - 'bigint': (True,)} |
89 | | - return metafunc |
90 | | - |
91 | | - |
92 | 71 | # without EMTEST_ALL_ENGINES set we only run tests in a single VM by |
93 | 72 | # default. in some tests we know that cross-VM differences may happen and |
94 | 73 | # so are worth testing, and they should be marked with this decorator |
|
0 commit comments