File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
YantraJS.Core/Core/Storage
YantraJS.Core.Tests/Imported Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ public void ArrayIndexer()
81
81
82
82
// The array indexer can see the prototype elements.
83
83
Evaluate ( "var array = [1, ,3]" ) ;
84
+ var a = Evaluate ( "array" ) ;
84
85
Evaluate ( "Array.prototype[1] = 'two'" ) ;
85
86
Evaluate ( "Array.prototype[20] = 'twenty'" ) ;
86
87
try
@@ -90,7 +91,6 @@ public void ArrayIndexer()
90
91
Assert . AreEqual ( true , Evaluate ( "array.hasOwnProperty(2)" ) ) ;
91
92
Assert . AreEqual ( false , Evaluate ( "array.hasOwnProperty(20)" ) ) ;
92
93
Assert . AreEqual ( 1 , Evaluate ( "array[0]" ) ) ;
93
- var a = Evaluate ( "array" ) ;
94
94
Assert . AreEqual ( "two" , Evaluate ( "array[1]" ) ) ;
95
95
Assert . AreEqual ( 3 , Evaluate ( "array[2]" ) ) ;
96
96
Assert . AreEqual ( "twenty" , Evaluate ( "array[20]" ) ) ;
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ public JSProperty this[uint index]
255
255
//}
256
256
}
257
257
258
- public bool IsNull => ! Storage . IsNull ;
258
+ public bool IsNull => Storage . IsNull ;
259
259
260
260
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
261
261
public bool TryGetValue ( uint key , out JSProperty value )
You can’t perform that action at this time.
0 commit comments