js/src/tests/test262/ch12/12.6/12.6.1/S12.6.1_A5.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  * After "do-while" is broken, (normal, V, empty) is returned
     6  *
     7  * @path ch12/12.6/12.6.1/S12.6.1_A5.js
     8  * @description Using eval
     9  */
    11 __evaluated = eval("do {__in__do__before__break=1; break; __in__do__after__break=2;} while(0)");
    13 //////////////////////////////////////////////////////////////////////////////
    14 //CHECK#1
    15 if (__in__do__before__break !== 1) {
    16 	$ERROR('#1: __in__do__before__break === 1. Actual:  __in__do__before__break ==='+ __in__do__before__break  );
    17 }
    18 //
    19 //////////////////////////////////////////////////////////////////////////////
    21 //////////////////////////////////////////////////////////////////////////////
    22 //CHECK#2
    23 if (typeof __in__do__after__break !== "undefined") {
    24 	$ERROR('#2: typeof __in__do__after__break === "undefined". Actual:  typeof __in__do__after__break ==='+ typeof __in__do__after__break  );
    25 }
    26 //
    27 //////////////////////////////////////////////////////////////////////////////
    29 //////////////////////////////////////////////////////////////////////////////
    30 //CHECK#3
    31 if (__evaluated !== 1) {
    32 	$ERROR('#3: __evaluated === 1. Actual:  __evaluated ==='+ __evaluated  );
    33 }
    34 //
    35 //////////////////////////////////////////////////////////////////////////////

mercurial