| 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | |
| 6 | gTestfile = '7.4.1-2-n.js'; |
| 7 | |
| 8 | /** |
| 9 | File Name: 7.4.1-2.js |
| 10 | ECMA Section: 7.4.1 |
| 11 | |
| 12 | Description: |
| 13 | |
| 14 | Reserved words cannot be used as identifiers. |
| 15 | |
| 16 | ReservedWord :: |
| 17 | Keyword |
| 18 | FutureReservedWord |
| 19 | NullLiteral |
| 20 | BooleanLiteral |
| 21 | |
| 22 | Author: [email protected] |
| 23 | Date: 12 november 1997 |
| 24 | |
| 25 | */ |
| 26 | var SECTION = "7.4.1-2-n"; |
| 27 | var VERSION = "ECMA_1"; |
| 28 | startTest(); |
| 29 | var TITLE = "Keywords"; |
| 30 | |
| 31 | writeHeaderToLog( SECTION + " "+ TITLE); |
| 32 | |
| 33 | DESCRIPTION = "var true = false"; |
| 34 | EXPECTED = "error"; |
| 35 | |
| 36 | new TestCase( SECTION, "var true = false", "error", eval("var true = false") ); |
| 37 | |
| 38 | test(); |