Skip to content

Commit cb91ee9

Browse files
committed
Storage simlified
1 parent 54c9639 commit cb91ee9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

YantraJS.Core.Tests/Imported/ArrayTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public void ArrayIndexer()
8181

8282
// The array indexer can see the prototype elements.
8383
Evaluate("var array = [1, ,3]");
84+
var a = Evaluate("array");
8485
Evaluate("Array.prototype[1] = 'two'");
8586
Evaluate("Array.prototype[20] = 'twenty'");
8687
try
@@ -90,7 +91,6 @@ public void ArrayIndexer()
9091
Assert.AreEqual(true, Evaluate("array.hasOwnProperty(2)"));
9192
Assert.AreEqual(false, Evaluate("array.hasOwnProperty(20)"));
9293
Assert.AreEqual(1, Evaluate("array[0]"));
93-
var a = Evaluate("array");
9494
Assert.AreEqual("two", Evaluate("array[1]"));
9595
Assert.AreEqual(3, Evaluate("array[2]"));
9696
Assert.AreEqual("twenty", Evaluate("array[20]"));

YantraJS.Core/Core/Storage/UIntMapArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public JSProperty this[uint index]
255255
//}
256256
}
257257

258-
public bool IsNull => !Storage.IsNull;
258+
public bool IsNull => Storage.IsNull;
259259

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

0 commit comments

Comments
 (0)