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 0dd7c77 commit f7133deCopy full SHA for f7133de
1 file changed
NativeScript/runtime/ModuleInternal.mm
@@ -168,11 +168,12 @@ bool IsESModule(const std::string& path) {
168
Local<Value> moduleNamespace;
169
try {
170
moduleNamespace = ModuleInternal::LoadESModule(isolate, path);
171
- } catch (const NativeScriptException& ex) {
+ } catch (NativeScriptException& ex) {
172
if (RuntimeConfig.IsDebug) {
173
Log(@"Error loading ES module: %s", path.c_str());
174
Log(@"Exception: %s", ex.getMessage().c_str());
175
}
176
+ ex.ReThrowToV8(isolate);
177
return false;
178
179
return true;
@@ -202,6 +203,9 @@ bool IsESModule(const std::string& path) {
202
203
tns::LogError(isolate, tc);
204
205
206
+ if (tc.HasCaught()) {
207
+ tc.ReThrow();
208
+ }
209
210
211
0 commit comments