tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S12.2_A4.js (909B)


      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: Unicode characters in variable Identifier are allowed
      6 es5id: 12.2_A4
      7 description: Create and use unicode characters in variable Identifier
      8 ---*/
      9 
     10 //////////////////////////////////////////////////////////////////////////////
     11 //CHECK#1
     12 try {
     13 __var=__var;
     14 } catch (e) {
     15 throw new Test262Error('#1: Unicode characters in variable Identifier allowed');
     16 }
     17 //
     18 //////////////////////////////////////////////////////////////////////////////
     19 
     20 var \u005f\u005f\u0076\u0061\u0072 = 1;
     21 
     22 //////////////////////////////////////////////////////////////////////////////
     23 //CHECK#2
     24 if (__var !== 1) {
     25 throw new Test262Error('#2: __var === 1. Actual:  __var ==='+ __var  );
     26 }
     27 //
     28 //////////////////////////////////////////////////////////////////////////////
     29 
     30 reportCompare(0, 0);