tc39 / proposal-atomics-wait-async

"asynchronous atomic wait" for ECMAScript
https://tc39.github.io/proposal-atomics-wait-async/
Other
89 stars 18 forks source link

DoWait() is missing the step that defines arrayTypeName before step 3 #25

Closed rwaldron closed 4 years ago

rwaldron commented 4 years ago

Currently:

  1. Let i be ? ValidateAtomicAccess(typedArray, index).
  2. If arrayTypeName is "BigInt64Array", let v be ? ToBigInt64(value).

Should be:

  1. Let i be ? ValidateAtomicAccess(typedArray, index).
  2. Let arrayTypeName be typedArray.[[TypedArrayName]].
  3. If arrayTypeName is "BigInt64Array", let v be ? ToBigInt64(value).