Skip to content

Commit

Permalink
Add test for sebastienros#1977
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamDoodz committed Oct 13, 2024
1 parent 5373b19 commit df7589b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Jint.Tests/Runtime/InteropTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,20 @@ public void CanGetStaticField()
");
}

[Fact]
public void CantGetStaticFieldFromInstance()
{
var o = new ClassWithStaticFields();

_engine.SetValue("o", o);

JsValue temp = _engine.Evaluate("o.Get");

RunTest(@"
assert(o.Get == undefined);
");
}

[Fact]
public void CanSetStaticField()
{
Expand Down

0 comments on commit df7589b

Please sign in to comment.