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 @@ -2604,6 +2604,9 @@ def test_pthread_wait32_notify(self):
2604
2604
@node_pthreads
2605
2605
@no_wasm2js ('https://github.com/WebAssembly/binaryen/issues/5991' )
2606
2606
def test_pthread_wait64_notify (self ):
2607
+ # node version >= 23 warns on emscripten_set_timeout_loop
2608
+ # that sets setTimeout with negative value
2609
+ self .node_args += ['--disable-warning=TimeoutNegativeWarning' ]
2607
2610
self .do_run_in_out_file_test ('atomic/test_wait64_notify.c' )
2608
2611
2609
2612
@node_pthreads
You can’t perform that action at this time.
0 commit comments