Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanenckevort committed Mar 1, 2024
1 parent 5fde3fe commit 7634f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AngleSharp.Js/Extensions/EngineExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static JsValue ToJsValue(this Object obj, EngineInstance engine)
var name = ((Enum)obj).GetOfficialName();
if (name != null)
{
return new JsValue(name);
return JsValue.FromObjectWithType(engine.Jint, name, typeof(String));
}
break;
}
Expand Down

0 comments on commit 7634f87

Please sign in to comment.