tc39 / proposal-atomics-microwait

Micro waits in JS
http://tc39.es/proposal-atomics-microwait/
Other
49 stars 1 forks source link

Rejecting negative iteration numbers? #7

Closed bakkot closed 6 months ago

bakkot commented 6 months ago

As currently specified, you can pass any integral Number to Atomics.pause. The readme says "The non-negative integer argument iterationNumber [...]". I don't think it matters much either way, but in the spirit of more aggressively rejecting invalid values you may wish to reject negative numbers here.

syg commented 6 months ago

Yeah sure sg.