| 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
| 2 | * |
| 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
| 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 6 | |
| 7 | var gTestfile = 'uc-002-n.js'; |
| 8 | |
| 9 | DESCRIPTION = "Non-character escapes in identifiers negative test."; |
| 10 | EXPECTED = "error"; |
| 11 | |
| 12 | enterFunc ("test"); |
| 13 | |
| 14 | printStatus ("Non-character escapes in identifiers negative test."); |
| 15 | printBugNumber (23607); |
| 16 | |
| 17 | eval("\u0020 = 5"); |
| 18 | reportCompare('PASS', 'FAIL', "Previous statement should have thrown an error."); |
| 19 | |
| 20 | exitFunc ("test"); |
| 21 |