start-underscore.js (414B)
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 info: "IdentifierPart :: IdentifierStart" 6 es5id: 7.6_A2.1_T3 7 description: "IdentifierStart :: _" 8 ---*/ 9 10 var _ = 1; 11 assert.sameValue(_, 1); 12 13 var _x = 2; 14 assert.sameValue(_x, 2); 15 16 var _$ = 3; 17 assert.sameValue(_$, 3); 18 19 var __ = 4; 20 assert.sameValue(__, 4); 21 22 reportCompare(0, 0);