Skip to content

Commit 98040df

Browse files
committed
Only catch target invocation exceptions
1 parent 0f50c2e commit 98040df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AngleSharp.Scripting.JavaScript/DomFunctionInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override JsValue Call(JsValue thisObject, JsValue[] arguments)
3333
var parameters = _engine.BuildArgs(_method, arguments);
3434
return _method.Invoke(node.Value, parameters).ToJsValue(_engine);
3535
}
36-
catch
36+
catch (TargetInvocationException)
3737
{
3838
throw new JavaScriptException(Engine.Error);
3939
}

0 commit comments

Comments
 (0)