Scope
Port Bun's js/web/atomics.test.ts at corpus position 4087 by correcting the Home compatibility behavior for atomic waits on SharedArrayBuffer-like storage.
Problem
The fallback currently converts every native Atomics.wait() rejection on Home's SharedArrayBuffer-compatible backing into "timed-out". This masks the required immediate "not-equal" result and can also hide invalid typed-array/index errors.
Acceptance criteria
- return
"not-equal"immediately when the current value differs - retain
"timed-out"for matching values with an elapsed timeout - validate waitable typed-array kinds and bounds instead of masking failures
- preserve structured operation/cause stacks for fallback validation failures
- focused upstream file passes with zero failures/unsupported tests
- permanent regression coverage is added
Tracked from #66.