File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,15 @@ void magic_test_function(void) {
12
12
out (x );
13
13
fetch ('http://localhost:8888?stdout=' + encodeURIComponent(x));
14
14
}
15
- report (' magic_test_function : input = ' + $0);
16
- var converted = wasmOffsetConverter .getName ($0 );
17
- report ('magic_test_function: converted=' + converted );
18
- return converted == 'magic_test_function' ;
15
+ try {
16
+ report (' magic_test_function : input = ' + $0);
17
+ var converted = wasmOffsetConverter .getName ($0 );
18
+ report (' magic_test_function : converted = ' + converted);
19
+ return converted == ' magic_test_function ';
20
+ } catch (e ) {
21
+ report (e ?.message + e ?.stack );
22
+ return false;
23
+ }
19
24
}, get_pc ());
20
25
assert (result );
21
26
}
Original file line number Diff line number Diff line change @@ -2598,6 +2598,9 @@ def test_pthread_wait32_notify(self):
2598
2598
@node_pthreads
2599
2599
@no_wasm2js ('https://github.com/WebAssembly/binaryen/issues/5991' )
2600
2600
def test_pthread_wait64_notify (self ):
2601
+ # node version >= 23 warns on emscripten_set_timeout_loop
2602
+ # that sets setTimeout with negative value
2603
+ self .node_args += ['--disable-warning=TimeoutNegativeWarning' ]
2601
2604
self .do_run_in_out_file_test ('atomic/test_wait64_notify.c' )
2602
2605
2603
2606
@node_pthreads
You can’t perform that action at this time.
0 commit comments