Skip to content

Commit

Permalink
Use more generic type-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanenckevort committed Mar 25, 2024
1 parent 06d9a51 commit f019708
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public override ObjectInstance Construct(JsValue[] arguments, JsValue newTarget)
{
try
{
return _instance.Call(_constructorFunction, _instance.Window, arguments) as DomNodeInstance;
return _instance.Call(_constructorFunction, _instance.Window, arguments) as ObjectInstance;
}
catch
{
Expand Down

0 comments on commit f019708

Please sign in to comment.