inspect-js / which-typed-array

Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
MIT License
11 stars 4 forks source link

this engine has support for Symbol.toStringTag, but Float32Array does not have the property! Please report this #49

Closed shentr closed 3 years ago

shentr commented 3 years ago

Android 5.1.1 throw this error

ljharb commented 3 years ago

Thanks - what does typeof Symbol.toStringTag report?

shentr commented 3 years ago

typeof Symbol.toStringTag === 'symbol' is true

ljharb commented 3 years ago

@shentr any idea which kind of android phones ship with v5.1.1? I only have browserstack available, and that only lists them by manufacturer.

Also, in which browser are you seeing this?

Also, what's the output of var a = new Float32Array(); console.log([Symbol.toStringTag in a, a[Symbol.toStringTag], Object.getOwnPropertyDescriptor(a.__proto__.__proto__, Symbol.toStringTag).get])?