|
@@ -295,7 +295,10 @@ namespace Jint
|
|
var result = _statements.ExecuteProgram(program);
|
|
var result = _statements.ExecuteProgram(program);
|
|
if (result.Type == Completion.Throw)
|
|
if (result.Type == Completion.Throw)
|
|
{
|
|
{
|
|
- throw new JavaScriptException(result.GetValueOrDefault());
|
|
|
|
|
|
+ throw new JavaScriptException(result.GetValueOrDefault())
|
|
|
|
+ {
|
|
|
|
+ Location = result.Location
|
|
|
|
+ };
|
|
}
|
|
}
|
|
|
|
|
|
_completionValue = result.GetValueOrDefault();
|
|
_completionValue = result.GetValueOrDefault();
|