1*** Freezing 2 3>>> Push test 4Pushing 0 to 1,2,3 5 array is now [1,2,3] length is = 3 6 7class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 8x.length === 3 (should be 3) 9x[3] === undefined (should be 0) 10x[4] === undefined (should be undefined) 11 12>>> Pop test 13Popping from 1,2,3 14 array is now [1,2,3] length is = 3 15 16class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 17Popping from 1,2,3 18 array is now [1,2,3] length is = 3 19 20class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 21x.length === 3 (should be 3) 22x === 1,2,3 23Popping from 1,2,3 24 array is now [1,2,3] length is = 3 25 26class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 27Popping from 1,2,3 28 array is now [1,2,3] length is = 3 29 30class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 31Popping from 1,2,3 32 array is now [1,2,3] length is = 3 33 34class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 35Popping from 1,2,3 36 array is now [1,2,3] length is = 3 37 38class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 39Popping from 1,2,3 40 array is now [1,2,3] length is = 3 41 42class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 43x.length === 3 (should be 3) 44x === 1,2,3 45class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter 46 47*** Other length not writable issues 48 49>>> Push test 50Pushing 0 to 1,2,3 51caught errorTypeError: "length" is not a writable property of [object Array] 52 array is now [1,2,3] length is = 3 53 54class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 55x.length === 3 (should be 3) 56x[3] === 0 (should be 0) 57x[4] === undefined (should be undefined) 58 59>>> Pop test 60Popping from 1,2,3 61 array is now [1,2,] length is = 3 62 63class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 64Popping from 1,2, 65 array is now [1,2,] length is = 3 66 67class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 68x.length === 3 (should be 3) 69x === 1,2, 70Popping from 1,2, 71 array is now [1,2,] length is = 3 72 73class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 74Popping from 1,2, 75 array is now [1,2,] length is = 3 76 77class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 78Popping from 1,2, 79 array is now [1,2,] length is = 3 80 81class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 82Popping from 1,2, 83 array is now [1,2,] length is = 3 84 85class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 86Popping from 1,2, 87 array is now [1,2,] length is = 3 88 89class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 90x.length === 3 (should be 3) 91x === 1,2, 92class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 93Writing 0 94class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 95Writing 1 96class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 97Writing 2 98class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 99 100array writing 0-3, with 1 stride, array = 0 101length = 1, but elements are: 0 undefined 2 102 103initial length = 1 104Writing 0 105class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 106Writing 3 107class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 108Writing 6 109class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 110Writing 9 111class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 112Writing 12 113class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 114Writing 15 115class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 116Writing 18 117class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 118Writing 21 119class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 120Writing 24 121class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 122Writing 27 123class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 124 125array writing 0-20, with 3 stride, array = 0 126length = 1, but elements are: 0 undefined undefined 1270 has length 1 128 129class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 130adding a new element high up in the array 131length before element was added 1 132putting sparse at 2147483637 133length after element was added 1 should be the same 134class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter 135 136Printing arr2 - this will fail if length is > 28 and it is 1 137arr2 = [0] 138new length that should not be writable = 1 139true 140sparse 1410 142undefined 143undefined 144undefined 145undefined 146undefined 147undefined 148undefined 149undefined 150undefined 151undefined 152undefined 153undefined 154undefined 155undefined 156undefined 157undefined 158undefined 159undefined 160undefined 1610:0 1622147483637:sparse 163Checking if push works for bulkable non bulkable arrays - Setting length property not allowed 1641 should be 1 165bar should be bar 166[bar] should be [bar] 1671 should STILL be 1 168bar should be bar 169baz should be baz 170[bar] should be [bar] 171 172Checking if push works for bulkable non bulkable arrays - Setting length property not allowed 1731 should be 1 174bar should be bar 175[bar] should be [bar] 176got TypeError when redefining length, as expected 177 178Checking if push works for bulkable non bulkable arrays - Setting length property not allowed 1791 should be 1 180bar should be bar 181[bar] should be [bar] 1822 should be 2 183bar should be bar 184baz should be baz 185[bar,baz] should be [bar,baz] 186Done 187