jsthrow method

JSValue jsthrow(
  1. JSValue obj, {
  2. bool autoDispose = true,
})

Implementation

JSValue jsthrow(JSValue obj, {bool autoDispose = true}) {
  JS_Throw(ref, obj.ref.ref);
  return JSValue(
    this,
    calloc.call(sizeOf<JSValue_>())..ref = JS_Throw(ref, obj.ref.ref),
    autoDispose: autoDispose,
  );
}