factory JSException.create(JSContext context, [JSValue? error]) { final Pointer<JSValueRef> ref = calloc.call(1); ref.value = error?.ref ?? nullptr; return JSException(context, ref); }