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
24This file checks which ECMAScript 3 keywords are treated as reserved words.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29SHOULD BE RESERVED:
30PASS isReserved('break') is true
31PASS isReserved('case') is true
32PASS isReserved('catch') is true
33PASS isReserved('class') is true
34PASS isReserved('const') is true
35PASS isReserved('continue') is true
36PASS isReserved('debugger') is true
37PASS isReserved('default') is true
38PASS isReserved('delete') is true
39PASS isReserved('do') is true
40PASS isReserved('else') is true
41PASS isReserved('enum') is true
42PASS isReserved('export') is true
43PASS isReserved('extends') is true
44PASS isReserved('false') is true
45PASS isReserved('finally') is true
46PASS isReserved('for') is true
47PASS isReserved('function') is true
48PASS isReserved('if') is true
49PASS isReserved('import') is true
50PASS isReserved('in') is true
51PASS isReserved('instanceof') is true
52PASS isReserved('new') is true
53PASS isReserved('null') is true
54PASS isReserved('return') is true
55PASS isReserved('super') is true
56PASS isReserved('switch') is true
57PASS isReserved('this') is true
58PASS isReserved('throw') is true
59PASS isReserved('true') is true
60PASS isReserved('try') is true
61PASS isReserved('typeof') is true
62PASS isReserved('var') is true
63PASS isReserved('void') is true
64PASS isReserved('while') is true
65PASS isReserved('with') is true
66
67SHOULD NOT BE RESERVED:
68PASS isReserved('abstract') is false
69PASS isReserved('boolean') is false
70PASS isReserved('byte') is false
71PASS isReserved('char') is false
72PASS isReserved('double') is false
73PASS isReserved('final') is false
74PASS isReserved('float') is false
75PASS isReserved('goto') is false
76PASS isReserved('implements') is false
77PASS isReserved('int') is false
78PASS isReserved('interface') is false
79PASS isReserved('long') is false
80PASS isReserved('native') is false
81PASS isReserved('package') is false
82PASS isReserved('private') is false
83PASS isReserved('protected') is false
84PASS isReserved('public') is false
85PASS isReserved('short') is false
86PASS isReserved('static') is false
87PASS isReserved('synchronized') is false
88PASS isReserved('throws') is false
89PASS isReserved('transient') is false
90PASS isReserved('volatile') is false
91
92PASS successfullyParsed is true
93
94TEST COMPLETE
95
96