Skip to content

Commit

Permalink
Catch error assignment fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Aug 15, 2024
1 parent 4ff6885 commit b7a8061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YantraJS.Core/Core/JSVariable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public JSValue GlobalValue
public JSVariable(Exception e, string name)
: this(e is JSException je
? je.Error
: (new JSException(e.ToString())).Error , name)
: JSException.From(e).Error , name)
{

}
Expand Down

0 comments on commit b7a8061

Please sign in to comment.