Skip to content

Commit f019708

Browse files
Use more generic type-cast
1 parent 06d9a51 commit f019708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AngleSharp.Js/Proxies/DomConstructorFunctionInstance.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public override ObjectInstance Construct(JsValue[] arguments, JsValue newTarget)
2020
{
2121
try
2222
{
23-
return _instance.Call(_constructorFunction, _instance.Window, arguments) as DomNodeInstance;
23+
return _instance.Call(_constructorFunction, _instance.Window, arguments) as ObjectInstance;
2424
}
2525
catch
2626
{

0 commit comments

Comments
 (0)