Debian Codegraph @

rhino/testsrc/tests/ecma/LexicalConventions/7.5-1.js

raw symbols SCIP
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.5-1.js';
7
8 /**
9 File Name: 7.5-1.js
10 ECMA Section: 7.5 Identifiers
11 Description: Identifiers are of unlimited length
12 - can contain letters, a decimal digit, _, or $
13 - the first character cannot be a decimal digit
14 - identifiers are case sensitive
15
16 Author: [email protected]
17 Date: 11 september 1997
18 */
19 var SECTION = "7.5-1";
20 var VERSION = "ECMA_1";
21 startTest();
22 var TITLE = "Identifiers";
23
24 writeHeaderToLog( SECTION + " "+ TITLE);
25
26 new TestCase( SECTION, "var $123 = 5", 5, eval("var $123 = 5;$123") );
27 new TestCase( SECTION, "var _123 = 5", 5, eval("var _123 = 5;_123") );
28
29 test();