Skip to content

Commit

Permalink
Storage simlified
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Sep 2, 2024
1 parent 54c9639 commit cb91ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion YantraJS.Core.Tests/Imported/ArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void ArrayIndexer()

// The array indexer can see the prototype elements.
Evaluate("var array = [1, ,3]");
var a = Evaluate("array");
Evaluate("Array.prototype[1] = 'two'");
Evaluate("Array.prototype[20] = 'twenty'");
try
Expand All @@ -90,7 +91,6 @@ public void ArrayIndexer()
Assert.AreEqual(true, Evaluate("array.hasOwnProperty(2)"));
Assert.AreEqual(false, Evaluate("array.hasOwnProperty(20)"));
Assert.AreEqual(1, Evaluate("array[0]"));
var a = Evaluate("array");
Assert.AreEqual("two", Evaluate("array[1]"));
Assert.AreEqual(3, Evaluate("array[2]"));
Assert.AreEqual("twenty", Evaluate("array[20]"));
Expand Down
2 changes: 1 addition & 1 deletion YantraJS.Core/Core/Storage/UIntMapArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public JSProperty this[uint index]
//}
}

public bool IsNull => !Storage.IsNull;
public bool IsNull => Storage.IsNull;

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool TryGetValue(uint key, out JSProperty value)
Expand Down

0 comments on commit cb91ee9

Please sign in to comment.