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 spec text talks about SIMD objects and SIMD values, where a SIMD object is an object with an internal [[SIMDData]] slot holding a SIMD value. The section about the SIMD constructor prototype talks about a [[SIMDWrapperData]] slot. I assume that is that same thing?
Looks like you found two spec bugs here--good catch!
SIMDWrapperData was renamed SIMDData, but sounds like I missed one usage.
SIMD generally tries to follow the precedent set by Symbol, so we should be accepting of primitive receivers here and make the second change you suggest.
The spec text talks about SIMD objects and SIMD values, where a SIMD object is an object with an internal
[[SIMDData]]
slot holding a SIMD value. The section about the SIMD constructor prototype talks about a[[SIMDWrapperData]]
slot. I assume that is that same thing?Consider this code:
The last line will throw a TypeError because the
SIMD.Int32x4.prototype.toString
method requires a SIMD object. I wonder if that is intentional?Compare to the
Symbol.prototype.toString
method which accepts both a symbol value and an object wrapping a symbol.Something similar is going on with the
valueOf
andtoLocaleString
methods.The text was updated successfully, but these errors were encountered: