start-dollar-sign.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_T2 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);