Skip to content

Commit

Permalink
Normative: Unconditionally call ToNumber on the timeout parameter in …
Browse files Browse the repository at this point in the history
…Atomics.wait, because it's not marked as optional
  • Loading branch information
anba authored and bterlson committed Feb 14, 2017
1 parent bc3563a commit a4d0e49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -34810,10 +34810,8 @@ <h1>Atomics.wait( _typedArray_, _index_, _value_, _timeout_ )</h1>
1. Let _buffer_ be ? ValidateSharedIntegerTypedArray(_typedArray_, *true*).
1. Let _i_ be ? ValidateAtomicAccess(_typedArray_, _index_).
1. Let _v_ be ? ToInt32(_value_).
1. If _timeout_ is not provided or is *undefined*, let _t_ be *+&infin;*.
1. Else,
1. Let _q_ be ? ToNumber(_timeout_).
1. If _q_ is *NaN*, let _t_ be *+&infin;*, else let _t_ be max(_q_, 0).
1. Let _q_ be ? ToNumber(_timeout_).
1. If _q_ is *NaN*, let _t_ be *+&infin;*, else let _t_ be max(_q_, 0).
1. Let _B_ be AgentCanSuspend().
1. If _B_ is *false*, throw a *TypeError* exception.
1. Let _offset_ be _typedArray_.[[ByteOffset]].
Expand Down

0 comments on commit a4d0e49

Please sign in to comment.