Skip to content

Commit c2001ec

Browse files
author
plamen5kov
committed
bug fix
1 parent f37651d commit c2001ec

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/jni/NativeScriptRuntime.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,7 @@ void NativeScriptRuntime::RequireCallback(const v8::FunctionCallbackInfo<v8::Val
826826
tmpExportObj->Reset();
827827
delete tmpExportObj;
828828
hasError = true;
829+
tcRequire.ReThrow();
829830
}
830831
else {
831832
if (moduleObj.IsEmpty())
@@ -848,6 +849,10 @@ void NativeScriptRuntime::RequireCallback(const v8::FunctionCallbackInfo<v8::Val
848849
}
849850
}
850851
}
852+
if (tc.HasCaught())
853+
{
854+
tc.ReThrow();
855+
}
851856
}
852857
else
853858
{

0 commit comments

Comments
 (0)