You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
The API function arguments that represent lane indexes are checked with the simdCheckLaneIndex() in the polyfill. This function throws a TypeError if the argument is not an Int32 Number.
The spec uses the abstract function SIMDToLane which first applies ToNumber before checking that the argument is an integer in the right range. This function only throws a TypeError when ToNumber throws.
The API function arguments that represent lane indexes are checked with the simdCheckLaneIndex() in the polyfill. This function throws a TypeError if the argument is not an Int32 Number.
The spec uses the abstract function SIMDToLane which first applies ToNumber before checking that the argument is an integer in the right range. This function only throws a TypeError when ToNumber throws.
Some differences:
extractLane(x, "1")
: Polyfill throws TypeError, spec returnsextractLane(x,1)
extractLane(x, false)
: Polyfill throws TypeError, spec returnsextractLane(x,0)
extractLane(x, 0x100000000)
: Polyfill throws TypeError, spec throws RangeErrorextractLane(x, 1.5)
: Polyfill throws TypeError, spec throws RangeErrorThe text was updated successfully, but these errors were encountered: