1# Copyright 2013 the V8 project authors. All rights reserved. 2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 1. Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. 9# 2. Redistributions in binary form must reproduce the above copyright 10# notice, this list of conditions and the following disclaimer in the 11# documentation and/or other materials provided with the distribution. 12# 13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY 14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 24Tests that doing repeated resolves of 'arguments' from some nested scope doesn't crash. 25 26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29PASS foo(42)[0] is 42 30PASS foo(42).length is 1 31PASS foo(42, 23)[1] is 23 32PASS foo(42)[0] is 42 33PASS foo(42).length is 1 34PASS foo(42, 23)[1] is 23 35PASS foo(42)[0] is 42 36PASS foo(42).length is 1 37PASS foo(42, 23)[1] is 23 38PASS foo(42)[0] is 42 39PASS foo(42).length is 1 40PASS foo(42, 23)[1] is 23 41PASS foo(42)[0] is 42 42PASS foo(42).length is 1 43PASS foo(42, 23)[1] is 23 44PASS foo(42)[0] is 42 45PASS foo(42).length is 1 46PASS foo(42, 23)[1] is 23 47PASS foo(42)[0] is 42 48PASS foo(42).length is 1 49PASS foo(42, 23)[1] is 23 50PASS foo(42)[0] is 42 51PASS foo(42).length is 1 52PASS foo(42, 23)[1] is 23 53PASS foo(42)[0] is 42 54PASS foo(42).length is 1 55PASS foo(42, 23)[1] is 23 56PASS foo(42)[0] is 42 57PASS foo(42).length is 1 58PASS foo(42, 23)[1] is 23 59PASS foo(42)[0] is 42 60PASS foo(42).length is 1 61PASS foo(42, 23)[1] is 23 62PASS foo(42)[0] is 42 63PASS foo(42).length is 1 64PASS foo(42, 23)[1] is 23 65PASS foo(42)[0] is 42 66PASS foo(42).length is 1 67PASS foo(42, 23)[1] is 23 68PASS foo(42)[0] is 42 69PASS foo(42).length is 1 70PASS foo(42, 23)[1] is 23 71PASS foo(42)[0] is 42 72PASS foo(42).length is 1 73PASS foo(42, 23)[1] is 23 74PASS foo(42)[0] is 42 75PASS foo(42).length is 1 76PASS foo(42, 23)[1] is 23 77PASS foo(42)[0] is 42 78PASS foo(42).length is 1 79PASS foo(42, 23)[1] is 23 80PASS foo(42)[0] is 42 81PASS foo(42).length is 1 82PASS foo(42, 23)[1] is 23 83PASS foo(42)[0] is 42 84PASS foo(42).length is 1 85PASS foo(42, 23)[1] is 23 86PASS foo(42)[0] is 42 87PASS foo(42).length is 1 88PASS foo(42, 23)[1] is 23 89PASS foo(42)[0] is 42 90PASS foo(42).length is 1 91PASS foo(42, 23)[1] is 23 92PASS foo(42)[0] is 42 93PASS foo(42).length is 1 94PASS foo(42, 23)[1] is 23 95PASS foo(42)[0] is 42 96PASS foo(42).length is 1 97PASS foo(42, 23)[1] is 23 98PASS foo(42)[0] is 42 99PASS foo(42).length is 1 100PASS foo(42, 23)[1] is 23 101PASS foo(42)[0] is 42 102PASS foo(42).length is 1 103PASS foo(42, 23)[1] is 23 104PASS foo(42)[0] is 42 105PASS foo(42).length is 1 106PASS foo(42, 23)[1] is 23 107PASS foo(42)[0] is 42 108PASS foo(42).length is 1 109PASS foo(42, 23)[1] is 23 110PASS foo(42)[0] is 42 111PASS foo(42).length is 1 112PASS foo(42, 23)[1] is 23 113PASS foo(42)[0] is 42 114PASS foo(42).length is 1 115PASS foo(42, 23)[1] is 23 116PASS foo(42)[0] is 42 117PASS foo(42).length is 1 118PASS foo(42, 23)[1] is 23 119PASS foo(42)[0] is 42 120PASS foo(42).length is 1 121PASS foo(42, 23)[1] is 23 122PASS foo(42)[0] is 42 123PASS foo(42).length is 1 124PASS foo(42, 23)[1] is 23 125PASS foo(42)[0] is 42 126PASS foo(42).length is 1 127PASS foo(42, 23)[1] is 23 128PASS foo(42)[0] is 42 129PASS foo(42).length is 1 130PASS foo(42, 23)[1] is 23 131PASS foo(42)[0] is 42 132PASS foo(42).length is 1 133PASS foo(42, 23)[1] is 23 134PASS foo(42)[0] is 42 135PASS foo(42).length is 1 136PASS foo(42, 23)[1] is 23 137PASS foo(42)[0] is 42 138PASS foo(42).length is 1 139PASS foo(42, 23)[1] is 23 140PASS foo(42)[0] is 42 141PASS foo(42).length is 1 142PASS foo(42, 23)[1] is 23 143PASS foo(42)[0] is 42 144PASS foo(42).length is 1 145PASS foo(42, 23)[1] is 23 146PASS foo(42)[0] is 42 147PASS foo(42).length is 1 148PASS foo(42, 23)[1] is 23 149PASS foo(42)[0] is 42 150PASS foo(42).length is 1 151PASS foo(42, 23)[1] is 23 152PASS foo(42)[0] is 42 153PASS foo(42).length is 1 154PASS foo(42, 23)[1] is 23 155PASS foo(42)[0] is 42 156PASS foo(42).length is 1 157PASS foo(42, 23)[1] is 23 158PASS foo(42)[0] is 42 159PASS foo(42).length is 1 160PASS foo(42, 23)[1] is 23 161PASS foo(42)[0] is 42 162PASS foo(42).length is 1 163PASS foo(42, 23)[1] is 23 164PASS foo(42)[0] is 42 165PASS foo(42).length is 1 166PASS foo(42, 23)[1] is 23 167PASS foo(42)[0] is 42 168PASS foo(42).length is 1 169PASS foo(42, 23)[1] is 23 170PASS foo(42)[0] is 42 171PASS foo(42).length is 1 172PASS foo(42, 23)[1] is 23 173PASS foo(42)[0] is 42 174PASS foo(42).length is 1 175PASS foo(42, 23)[1] is 23 176PASS foo(42)[0] is 42 177PASS foo(42).length is 1 178PASS foo(42, 23)[1] is 23 179PASS foo(42)[0] is 42 180PASS foo(42).length is 1 181PASS foo(42, 23)[1] is 23 182PASS foo(42)[0] is 42 183PASS foo(42).length is 1 184PASS foo(42, 23)[1] is 23 185PASS foo(42)[0] is 42 186PASS foo(42).length is 1 187PASS foo(42, 23)[1] is 23 188PASS foo(42)[0] is 42 189PASS foo(42).length is 1 190PASS foo(42, 23)[1] is 23 191PASS foo(42)[0] is 42 192PASS foo(42).length is 1 193PASS foo(42, 23)[1] is 23 194PASS foo(42)[0] is 42 195PASS foo(42).length is 1 196PASS foo(42, 23)[1] is 23 197PASS foo(42)[0] is 42 198PASS foo(42).length is 1 199PASS foo(42, 23)[1] is 23 200PASS foo(42)[0] is 42 201PASS foo(42).length is 1 202PASS foo(42, 23)[1] is 23 203PASS foo(42)[0] is 42 204PASS foo(42).length is 1 205PASS foo(42, 23)[1] is 23 206PASS foo(42)[0] is 42 207PASS foo(42).length is 1 208PASS foo(42, 23)[1] is 23 209PASS foo(42)[0] is 42 210PASS foo(42).length is 1 211PASS foo(42, 23)[1] is 23 212PASS foo(42)[0] is 42 213PASS foo(42).length is 1 214PASS foo(42, 23)[1] is 23 215PASS foo(42)[0] is 42 216PASS foo(42).length is 1 217PASS foo(42, 23)[1] is 23 218PASS foo(42)[0] is 42 219PASS foo(42).length is 1 220PASS foo(42, 23)[1] is 23 221PASS foo(42)[0] is 42 222PASS foo(42).length is 1 223PASS foo(42, 23)[1] is 23 224PASS foo(42)[0] is 42 225PASS foo(42).length is 1 226PASS foo(42, 23)[1] is 23 227PASS foo(42)[0] is 42 228PASS foo(42).length is 1 229PASS foo(42, 23)[1] is 23 230PASS foo(42)[0] is 42 231PASS foo(42).length is 1 232PASS foo(42, 23)[1] is 23 233PASS foo(42)[0] is 42 234PASS foo(42).length is 1 235PASS foo(42, 23)[1] is 23 236PASS foo(42)[0] is 42 237PASS foo(42).length is 1 238PASS foo(42, 23)[1] is 23 239PASS foo(42)[0] is 42 240PASS foo(42).length is 1 241PASS foo(42, 23)[1] is 23 242PASS foo(42)[0] is 42 243PASS foo(42).length is 1 244PASS foo(42, 23)[1] is 23 245PASS foo(42)[0] is 42 246PASS foo(42).length is 1 247PASS foo(42, 23)[1] is 23 248PASS foo(42)[0] is 42 249PASS foo(42).length is 1 250PASS foo(42, 23)[1] is 23 251PASS foo(42)[0] is 42 252PASS foo(42).length is 1 253PASS foo(42, 23)[1] is 23 254PASS foo(42)[0] is 42 255PASS foo(42).length is 1 256PASS foo(42, 23)[1] is 23 257PASS foo(42)[0] is 42 258PASS foo(42).length is 1 259PASS foo(42, 23)[1] is 23 260PASS foo(42)[0] is 42 261PASS foo(42).length is 1 262PASS foo(42, 23)[1] is 23 263PASS foo(42)[0] is 42 264PASS foo(42).length is 1 265PASS foo(42, 23)[1] is 23 266PASS foo(42)[0] is 42 267PASS foo(42).length is 1 268PASS foo(42, 23)[1] is 23 269PASS foo(42)[0] is 42 270PASS foo(42).length is 1 271PASS foo(42, 23)[1] is 23 272PASS foo(42)[0] is 42 273PASS foo(42).length is 1 274PASS foo(42, 23)[1] is 23 275PASS foo(42)[0] is 42 276PASS foo(42).length is 1 277PASS foo(42, 23)[1] is 23 278PASS foo(42)[0] is 42 279PASS foo(42).length is 1 280PASS foo(42, 23)[1] is 23 281PASS foo(42)[0] is 42 282PASS foo(42).length is 1 283PASS foo(42, 23)[1] is 23 284PASS foo(42)[0] is 42 285PASS foo(42).length is 1 286PASS foo(42, 23)[1] is 23 287PASS foo(42)[0] is 42 288PASS foo(42).length is 1 289PASS foo(42, 23)[1] is 23 290PASS foo(42)[0] is 42 291PASS foo(42).length is 1 292PASS foo(42, 23)[1] is 23 293PASS foo(42)[0] is 42 294PASS foo(42).length is 1 295PASS foo(42, 23)[1] is 23 296PASS foo(42)[0] is 42 297PASS foo(42).length is 1 298PASS foo(42, 23)[1] is 23 299PASS foo(42)[0] is 42 300PASS foo(42).length is 1 301PASS foo(42, 23)[1] is 23 302PASS foo(42)[0] is 42 303PASS foo(42).length is 1 304PASS foo(42, 23)[1] is 23 305PASS foo(42)[0] is 42 306PASS foo(42).length is 1 307PASS foo(42, 23)[1] is 23 308PASS foo(42)[0] is 42 309PASS foo(42).length is 1 310PASS foo(42, 23)[1] is 23 311PASS foo(42)[0] is 42 312PASS foo(42).length is 1 313PASS foo(42, 23)[1] is 23 314PASS foo(42)[0] is 42 315PASS foo(42).length is 1 316PASS foo(42, 23)[1] is 23 317PASS foo(42)[0] is 42 318PASS foo(42).length is 1 319PASS foo(42, 23)[1] is 23 320PASS foo(42)[0] is 42 321PASS foo(42).length is 1 322PASS foo(42, 23)[1] is 23 323PASS foo(42)[0] is 42 324PASS foo(42).length is 1 325PASS foo(42, 23)[1] is 23 326PASS foo(42)[0] is 42 327PASS foo(42).length is 1 328PASS foo(42, 23)[1] is 23 329PASS successfullyParsed is true 330 331TEST COMPLETE 332 333