JSException.create constructor
Implementation
factory JSException.create(
JSContext context, {
JSValue? error,
bool autoDispose = true,
}) {
final Pointer<JSValueRef> ref = calloc.call<JSValueRef>(
sizeOf<JSValueRef>(),
);
ref.value = error?.ref ?? nullptr;
return JSException(context, ref, autoDispose: autoDispose);
}