Skip to content

Commit 142eeb4

Browse files
committed
fix object conversion
1 parent 4a67000 commit 142eeb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AngleSharp.Scripting.JavaScript/SystemTypeConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static Object ToObject(JsValue arg)
5050

5151
static Object Clr(this JsValue arg)
5252
{
53-
return arg;
53+
return arg?.ToObject();
5454
}
5555
}
5656
}

0 commit comments

Comments
 (0)