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
fix: improve ArrayBuffer brand check in ensureBuffer (#429)
`instanceof` is notoriously unreliable in JS, because it can
be fooled by prototype manipulation and breaks down entirely
for cross-realm brand checks.
Using `Object.prototype.toString` is generally a better choice
for this.
This also adds `SharedArrayBuffer` as an alternative, as both
should be treated the same under most circumstances.
0 commit comments