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 DFG getter caching does not break the world if the getter throws an exception.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29PASS bar(o) is "Returned result: 0"
30PASS bar(o) is "Returned result: 1"
31PASS bar(o) is "Returned result: 2"
32PASS bar(o) is "Returned result: 3"
33PASS bar(o) is "Returned result: 4"
34PASS bar(o) is "Returned result: 5"
35PASS bar(o) is "Returned result: 6"
36PASS bar(o) is "Returned result: 7"
37PASS bar(o) is "Returned result: 8"
38PASS bar(o) is "Returned result: 9"
39PASS bar(o) is "Returned result: 10"
40PASS bar(o) is "Returned result: 11"
41PASS bar(o) is "Returned result: 12"
42PASS bar(o) is "Returned result: 13"
43PASS bar(o) is "Returned result: 14"
44PASS bar(o) is "Returned result: 15"
45PASS bar(o) is "Returned result: 16"
46PASS bar(o) is "Returned result: 17"
47PASS bar(o) is "Returned result: 18"
48PASS bar(o) is "Returned result: 19"
49PASS bar(o) is "Returned result: 20"
50PASS bar(o) is "Returned result: 21"
51PASS bar(o) is "Returned result: 22"
52PASS bar(o) is "Returned result: 23"
53PASS bar(o) is "Returned result: 24"
54PASS bar(o) is "Returned result: 25"
55PASS bar(o) is "Returned result: 26"
56PASS bar(o) is "Returned result: 27"
57PASS bar(o) is "Returned result: 28"
58PASS bar(o) is "Returned result: 29"
59PASS bar(o) is "Returned result: 30"
60PASS bar(o) is "Returned result: 31"
61PASS bar(o) is "Returned result: 32"
62PASS bar(o) is "Returned result: 33"
63PASS bar(o) is "Returned result: 34"
64PASS bar(o) is "Returned result: 35"
65PASS bar(o) is "Returned result: 36"
66PASS bar(o) is "Returned result: 37"
67PASS bar(o) is "Returned result: 38"
68PASS bar(o) is "Returned result: 39"
69PASS bar(o) is "Returned result: 40"
70PASS bar(o) is "Returned result: 41"
71PASS bar(o) is "Returned result: 42"
72PASS bar(o) is "Returned result: 43"
73PASS bar(o) is "Returned result: 44"
74PASS bar(o) is "Returned result: 45"
75PASS bar(o) is "Returned result: 46"
76PASS bar(o) is "Returned result: 47"
77PASS bar(o) is "Returned result: 48"
78PASS bar(o) is "Returned result: 49"
79PASS bar(o) is "Returned result: 50"
80PASS bar(o) is "Returned result: 51"
81PASS bar(o) is "Returned result: 52"
82PASS bar(o) is "Returned result: 53"
83PASS bar(o) is "Returned result: 54"
84PASS bar(o) is "Returned result: 55"
85PASS bar(o) is "Returned result: 56"
86PASS bar(o) is "Returned result: 57"
87PASS bar(o) is "Returned result: 58"
88PASS bar(o) is "Returned result: 59"
89PASS bar(o) is "Returned result: 60"
90PASS bar(o) is "Returned result: 61"
91PASS bar(o) is "Returned result: 62"
92PASS bar(o) is "Returned result: 63"
93PASS bar(o) is "Returned result: 64"
94PASS bar(o) is "Returned result: 65"
95PASS bar(o) is "Returned result: 66"
96PASS bar(o) is "Returned result: 67"
97PASS bar(o) is "Returned result: 68"
98PASS bar(o) is "Returned result: 69"
99PASS bar(o) is "Returned result: 70"
100PASS bar(o) is "Returned result: 71"
101PASS bar(o) is "Returned result: 72"
102PASS bar(o) is "Returned result: 73"
103PASS bar(o) is "Returned result: 74"
104PASS bar(o) is "Returned result: 75"
105PASS bar(o) is "Returned result: 76"
106PASS bar(o) is "Returned result: 77"
107PASS bar(o) is "Returned result: 78"
108PASS bar(o) is "Returned result: 79"
109PASS bar(o) is "Returned result: 80"
110PASS bar(o) is "Returned result: 81"
111PASS bar(o) is "Returned result: 82"
112PASS bar(o) is "Returned result: 83"
113PASS bar(o) is "Returned result: 84"
114PASS bar(o) is "Returned result: 85"
115PASS bar(o) is "Returned result: 86"
116PASS bar(o) is "Returned result: 87"
117PASS bar(o) is "Returned result: 88"
118PASS bar(o) is "Returned result: 89"
119PASS bar(o) is "Returned result: 90"
120PASS bar(o) is "Returned result: 91"
121PASS bar(o) is "Returned result: 92"
122PASS bar(o) is "Returned result: 93"
123PASS bar(o) is "Returned result: 94"
124PASS bar(o) is "Returned result: 95"
125PASS bar(o) is "Returned result: 96"
126PASS bar(o) is "Returned result: 97"
127PASS bar(o) is "Returned result: 98"
128PASS bar(o) is "Returned result: 99"
129PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
130PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
131PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
132PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
133PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
134PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
135PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
136PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
137PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
138PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
139PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
140PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
141PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
142PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
143PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
144PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
145PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
146PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
147PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
148PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
149PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
150PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
151PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
152PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
153PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
154PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
155PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
156PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
157PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
158PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
159PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
160PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
161PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
162PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
163PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
164PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
165PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
166PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
167PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
168PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
169PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
170PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
171PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
172PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
173PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
174PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
175PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
176PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
177PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
178PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
179PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
180PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
181PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
182PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
183PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
184PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
185PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
186PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
187PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
188PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
189PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
190PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
191PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
192PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
193PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
194PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
195PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
196PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
197PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
198PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
199PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
200PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
201PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
202PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
203PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
204PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
205PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
206PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
207PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
208PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
209PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
210PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
211PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
212PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
213PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
214PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
215PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
216PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
217PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
218PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
219PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
220PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
221PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
222PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
223PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
224PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
225PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
226PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
227PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
228PASS bar(o) is "Threw exception: Oh hi, I'm an exception!"
229PASS successfullyParsed is true
230
231TEST COMPLETE
232
233