typedArrayBuffer method
Returns the JavaScript Array Buffer object that is used as the backing of a JavaScript Typed Array object.
exception
(JSValueRef*) A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
Implementation
JSObject typedArrayBuffer({bool autoDispose = true}) {
final JSException exception = JSException.create(context);
final objectRef = JSObject(
context,
JSObjectGetTypedArrayBuffer(context.ref, _ref, exception.ref),
autoDispose: autoDispose,
);
if (exception.shouldThrow) throw exception.error;
return objectRef;
}