js/src/tests/test262/ch07/7.6/S7.6_A1.3_T3.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * IdentifierStart :: _
     6  *
     7  * @path ch07/7.6/S7.6_A1.3_T3.js
     8  * @description The _ as unicode character \u005F
     9  */
    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 }
    18 //CHECK#2
    19 if ("_" !== String.fromCharCode(0x005F)) {
    20   $ERROR('#2: "_" === String.fromCharCode(0x005F)');
    21 }

mercurial