We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fde3fe commit 7634f87Copy full SHA for 7634f87
src/AngleSharp.Js/Extensions/EngineExtensions.cs
@@ -51,7 +51,7 @@ public static JsValue ToJsValue(this Object obj, EngineInstance engine)
51
var name = ((Enum)obj).GetOfficialName();
52
if (name != null)
53
{
54
- return new JsValue(name);
+ return JsValue.FromObjectWithType(engine.Jint, name, typeof(String));
55
}
56
break;
57
0 commit comments