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

Step 12.a. should set, not let #23

Closed rwaldron closed 4 years ago

rwaldron commented 4 years ago

Currently:

  1. Let promiseCapability be undefined.
  2. If mode is async, then a. Let promiseCapability be ! NewPromiseCapability(%Promise%).

Should be:

  1. Let promiseCapability be undefined.
  2. If mode is async, then a. Set promiseCapability to ! NewPromiseCapability(%Promise%).
syg commented 4 years ago

Good catch, will fix.