nashorn/test/script/basic/JDK-8035312.js.EXPECTED
author hannesw
Sat, 02 Sep 2017 14:26:29 +0200
changeset 47205 6ddad446ba23
parent 27525 e7d3c00b9fb8
permissions -rw-r--r--
8169233: LengthNotWritableFilter extraElements.remove(index) has no effect Reviewed-by: sundar, jlaskey Contributed-by: priya.lakshmi.muthuswamy@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     1
*** Freezing
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     2
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     3
>>> Push test
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     4
Pushing 0 to 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     5
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     6
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     7
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     8
x.length === 3 (should be 3)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
     9
x[3] === undefined (should be 0)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    10
x[4] === undefined (should be undefined)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    11
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    12
>>> Pop test
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    13
Popping from 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    14
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    15
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    16
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    17
Popping from 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    18
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    19
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    20
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    21
x.length === 3 (should be 3)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    22
x === 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    23
Popping from 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    24
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    25
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    26
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    27
Popping from 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    28
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    29
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    30
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    31
Popping from 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    32
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    33
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    34
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    35
Popping from 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    36
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    37
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    38
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    39
Popping from 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    40
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    41
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    42
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    43
x.length === 3 (should be 3)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    44
x === 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    45
class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    46
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    47
*** Other length not writable issues
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    48
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    49
>>> Push test
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    50
Pushing 0 to 1,2,3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    51
caught errorTypeError: "length" is not a writable property of [object Array]
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    52
	array is now [1,2,3] length is = 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    53
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    54
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    55
x.length === 3 (should be 3)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    56
x[3] === 0 (should be 0)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    57
x[4] === undefined (should be undefined)
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    58
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    59
>>> Pop test
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    60
Popping from 1,2,3
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    61
	array is now [1,2,] length is = 3
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    62
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    63
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    64
Popping from 1,2,
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    65
	array is now [1,2,] length is = 3
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    66
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    67
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    68
x.length === 3 (should be 3)
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    69
x === 1,2,
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    70
Popping from 1,2,
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    71
	array is now [1,2,] length is = 3
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    72
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    73
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    74
Popping from 1,2,
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    75
	array is now [1,2,] length is = 3
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    76
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    77
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    78
Popping from 1,2,
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    79
	array is now [1,2,] length is = 3
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    80
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    81
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    82
Popping from 1,2,
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    83
	array is now [1,2,] length is = 3
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    84
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    85
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    86
Popping from 1,2,
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    87
	array is now [1,2,] length is = 3
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    88
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    89
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    90
x.length === 3 (should be 3)
47205
6ddad446ba23 8169233: LengthNotWritableFilter extraElements.remove(index) has no effect
hannesw
parents: 27525
diff changeset
    91
x === 1,2,
27525
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    92
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    93
Writing 0
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    94
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    95
Writing 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    96
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    97
Writing 2
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    98
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
    99
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   100
array writing 0-3, with 1 stride, array = 0
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   101
length = 1, but elements are: 0 undefined 2
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   102
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   103
initial length = 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   104
Writing 0
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   105
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   106
Writing 3
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   107
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   108
Writing 6
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   109
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   110
Writing 9
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   111
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   112
Writing 12
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   113
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   114
Writing 15
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   115
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   116
Writing 18
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   117
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   118
Writing 21
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   119
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   120
Writing 24
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   121
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   122
Writing 27
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   123
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   124
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   125
array writing 0-20, with 3 stride, array = 0
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   126
length = 1, but elements are: 0 undefined undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   127
0 has length 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   128
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   129
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   130
adding a new element high up in the array
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   131
length before element was added 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   132
putting sparse at 2147483637
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   133
length after element was added 1 should be the same
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   134
class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   135
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   136
Printing arr2 - this will fail if length is > 28 and it is 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   137
arr2 = [0]
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   138
new length that should not be writable = 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   139
true
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   140
sparse
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   141
0
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   142
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   143
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   144
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   145
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   146
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   147
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   148
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   149
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   150
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   151
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   152
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   153
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   154
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   155
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   156
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   157
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   158
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   159
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   160
undefined
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   161
0:0
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   162
2147483637:sparse
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   163
Checking if push works for bulkable non bulkable arrays - Setting length property not allowed
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   164
1 should be 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   165
bar should be bar
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   166
[bar] should be [bar]
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   167
1 should STILL be 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   168
bar should be bar
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   169
baz should be baz
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   170
[bar] should be [bar]
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   171
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   172
Checking if push works for bulkable non bulkable arrays - Setting length property not allowed
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   173
1 should be 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   174
bar should be bar
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   175
[bar] should be [bar]
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   176
got TypeError when redefining length, as expected
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   177
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   178
Checking if push works for bulkable non bulkable arrays - Setting length property not allowed
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   179
1 should be 1
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   180
bar should be bar
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   181
[bar] should be [bar]
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   182
2 should be 2
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   183
bar should be bar
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   184
baz should be baz
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   185
[bar,baz] should be [bar,baz]
e7d3c00b9fb8 8035312: Various array and ScriptObject length issues for non writable length fields
lagergren
parents:
diff changeset
   186
Done