|
1 // Copyright 2009 the Sputnik authors. All rights reserved. |
|
2 // This code is governed by the BSD license found in the LICENSE file. |
|
3 |
|
4 /** |
|
5 * IdentifierStart :: _ |
|
6 * |
|
7 * @path ch07/7.6/S7.6_A1.3_T3.js |
|
8 * @description The _ as unicode character \u005F |
|
9 */ |
|
10 |
|
11 //CHECK#1 |
|
12 var identifier = String.fromCharCode(0x005F); |
|
13 eval("var " + identifier + "=1"); |
|
14 if (eval(identifier + "===1") !== true) { |
|
15 $ERROR('#1: var identifier = String.fromCharCode(0x005F); eval("var " + identifier + "=1"); eval(identifier + "===1") === true'); |
|
16 } |
|
17 |
|
18 //CHECK#2 |
|
19 if ("_" !== String.fromCharCode(0x005F)) { |
|
20 $ERROR('#2: "_" === String.fromCharCode(0x005F)'); |
|
21 } |
|
22 |