An easy way to detect if an array buffer is detached?

For as much as IsDetachedBuffer is called, both in the ES spec and elsewhere (like the HTML spec), to see if an error needs thrown, it'd be nice if that were exposed at the API level as a getter. It'd make checking certain invariants (for testing and runtime assertions) much easier than hacks with checking if accessing a certain property or invoking a certain function throws.

1 Like