mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
v0.3.3
This commit is contained in:
@@ -15,7 +15,7 @@ extern "C"
|
||||
|
||||
DLLEXPORT JSValue *jsThrow(JSContext *ctx, JSValue *obj)
|
||||
{
|
||||
return new JSValue(JS_Throw(ctx, *obj));
|
||||
return new JSValue(JS_Throw(ctx, JS_DupValue(ctx, *obj)));
|
||||
}
|
||||
|
||||
DLLEXPORT JSValue *jsEXCEPTION()
|
||||
|
Reference in New Issue
Block a user