@no_wasm2js('massive switches can break js engines')
@is_slow_test
def test_biggerswitch(self):
    if self.is_wasm_backend():
        if (not is_optimizing(self.emcc_args)):
            self.skipTest('nodejs takes >6GB to compile this if the wasm is not optimized, which OOMs, see https://github.com/emscripten-core/emscripten/issues/7928#issuecomment-458308453')
        if ('-Os' in self.emcc_args):
            self.skipTest('hangs in recent upstream clang, see https://bugs.llvm.org/show_bug.cgi?id=43468')
    num_cases = 20000
    switch_case = run_process([PYTHON, path_from_root('tests', 'gen_large_switchcase.py'), str(num_cases)], stdout=PIPE, stderr=PIPE).stdout
    self.do_run(switch_case, '58996: 589965899658996\n59297: 592975929759297\n59598: default\n59899: 598995989959899\nSuccess!')
@no_wasm2js('massive switches can break js engines')
@is_slow_test
def test_biggerswitch(self):
    if self.is_wasm_backend():
        if (not is_optimizing(self.emcc_args)):
            self.skipTest('nodejs takes >6GB to compile this if the wasm is not optimized, which OOMs, see https://github.com/emscripten-core/emscripten/issues/7928#issuecomment-458308453')
        if ('-Os' in self.emcc_args):
            self.skipTest('hangs in recent upstream clang, see https://bugs.llvm.org/show_bug.cgi?id=43468')
    num_cases = 20000
    switch_case = run_process([PYTHON, path_from_root('tests', 'gen_large_switchcase.py'), str(num_cases)], stdout=PIPE, stderr=PIPE).stdout
    self.do_run(switch_case, '58996: 589965899658996\n59297: 592975929759297\n59598: default\n59899: 598995989959899\nSuccess!')