We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37651d commit c2001ecCopy full SHA for c2001ec
1 file changed
src/jni/NativeScriptRuntime.cpp
@@ -826,6 +826,7 @@ void NativeScriptRuntime::RequireCallback(const v8::FunctionCallbackInfo<v8::Val
826
tmpExportObj->Reset();
827
delete tmpExportObj;
828
hasError = true;
829
+ tcRequire.ReThrow();
830
}
831
else {
832
if (moduleObj.IsEmpty())
@@ -848,6 +849,10 @@ void NativeScriptRuntime::RequireCallback(const v8::FunctionCallbackInfo<v8::Val
848
849
850
851
852
+ if (tc.HasCaught())
853
+ {
854
+ tc.ReThrow();
855
+ }
856
857
else
858
{
0 commit comments