summaryrefslogtreecommitdiff
path: root/test/binaryen.js/global.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-03-19 12:34:35 -0700
committerGitHub <noreply@github.com>2024-03-19 12:34:35 -0700
commit4ce9fb460b6a1161209904264bafec96abe911ac (patch)
tree24043d7baa00165c920fd6180d3b447f6ba2e738 /test/binaryen.js/global.js
parent70f860e7b11b013efd5af4bb5c14b72d2183a45a (diff)
downloadbinaryen-4ce9fb460b6a1161209904264bafec96abe911ac.tar.gz
binaryen-4ce9fb460b6a1161209904264bafec96abe911ac.tar.bz2
binaryen-4ce9fb460b6a1161209904264bafec96abe911ac.zip
Atomics: Handle timeouts in waits in the (single-threaded) interpreter (#6408)
The interpreter does not run multiple threads, and it was returning 0 from atomic.wait, which means it was woken up. But it is more correct for it to return 2, which means it timed out - which is actually the case, as no other thread exists that can wake it up. However, even that is not good for fuzzing as the timeout may be infinite or large, so just emit a host limit error on any timeout for now, until we actually implement threads.
Diffstat (limited to 'test/binaryen.js/global.js')
0 files changed, 0 insertions, 0 deletions