test/script/basic/JDK-8035312.js.EXPECTED

Wed, 03 Jun 2015 18:08:57 +0200

author
hannesw
date
Wed, 03 Jun 2015 18:08:57 +0200
changeset 1396
d5a9705a27b1
parent 1095
3dbb4c9ff43c
permissions
-rw-r--r--

8066237: Fuzzing bug: Parser error on optimistic recompilation
Reviewed-by: lagergren, attila

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

mercurial