Skip to content

Commit

Permalink
Observe we're not using the current source file, and expand mapping t…
Browse files Browse the repository at this point in the history
…o invoke()
  • Loading branch information
Jim Hague committed Aug 16, 2021
1 parent b2c942f commit 9a446dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions react_juce/core/EcmascriptEngine_Hermes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ namespace reactjuce
}

//==============================================================================
juce::String sourceMapError(const juce::String &err, const juce::File &code)
juce::String sourceMapError(const juce::String &err)
{
std::unordered_map<juce::String, std::unique_ptr<SourceMap>> maps;
std::string s = err.toStdString();
Expand Down Expand Up @@ -380,7 +380,7 @@ namespace reactjuce
}
catch (const jsi::JSIException &e)
{
throw Error(e.what());
throw Error(sourceMapError(e.what()));
}
}

Expand All @@ -396,7 +396,7 @@ namespace reactjuce
}
catch (const jsi::JSIException &e)
{
throw Error(sourceMapError(e.what(), code));
throw Error(sourceMapError(e.what()));
}
}

Expand All @@ -415,7 +415,7 @@ namespace reactjuce
}
catch (const jsi::JSIException &e)
{
throw Error(sourceMapError(e.what(), code));
throw Error(sourceMapError(e.what()));
}
}

Expand Down Expand Up @@ -481,7 +481,7 @@ namespace reactjuce
}
catch(const jsi::JSIException &e)
{
throw Error(e.what());
throw Error(sourceMapError(e.what()));
}
}

Expand Down

0 comments on commit 9a446dd

Please sign in to comment.