Skip to content

Commit 9a446dd

Browse files
author
Jim Hague
committed
Observe we're not using the current source file, and expand mapping to invoke()
1 parent b2c942f commit 9a446dd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

react_juce/core/EcmascriptEngine_Hermes.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ namespace reactjuce
250250
}
251251

252252
//==============================================================================
253-
juce::String sourceMapError(const juce::String &err, const juce::File &code)
253+
juce::String sourceMapError(const juce::String &err)
254254
{
255255
std::unordered_map<juce::String, std::unique_ptr<SourceMap>> maps;
256256
std::string s = err.toStdString();
@@ -380,7 +380,7 @@ namespace reactjuce
380380
}
381381
catch (const jsi::JSIException &e)
382382
{
383-
throw Error(e.what());
383+
throw Error(sourceMapError(e.what()));
384384
}
385385
}
386386

@@ -396,7 +396,7 @@ namespace reactjuce
396396
}
397397
catch (const jsi::JSIException &e)
398398
{
399-
throw Error(sourceMapError(e.what(), code));
399+
throw Error(sourceMapError(e.what()));
400400
}
401401
}
402402

@@ -415,7 +415,7 @@ namespace reactjuce
415415
}
416416
catch (const jsi::JSIException &e)
417417
{
418-
throw Error(sourceMapError(e.what(), code));
418+
throw Error(sourceMapError(e.what()));
419419
}
420420
}
421421

@@ -481,7 +481,7 @@ namespace reactjuce
481481
}
482482
catch(const jsi::JSIException &e)
483483
{
484-
throw Error(e.what());
484+
throw Error(sourceMapError(e.what()));
485485
}
486486
}
487487

0 commit comments

Comments
 (0)