Open Bug 1882571 Opened 4 months ago

Throw RuntimeError instead of TypeError for atomic wait instructions when used on main thread

Categories

(Core :: JavaScript: WebAssembly, task, P2)

task

Tracking

()

People

(Reporter: rhunt, Unassigned)

Details

See this comment. We are throwing a TypeError when doing a wait instruction, while the intended error is a RuntimeError. This is due to us relying on the atomics builtin code to throw this error, instead of checking for this ourselves in our wait code.

You need to log in before you can comment on or make changes to this bug.