js/src/tests/test262/ch12/12.8/S12.8_A5_T3.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 // Copyright 2009 the Sputnik authors. All rights reserved.
michael@0 2 // This code is governed by the BSD license found in the LICENSE file.
michael@0 3
michael@0 4 /**
michael@0 5 * Identifier must be label in the label set of an enclosing (but not crossing function boundaries) IterationStatement
michael@0 6 *
michael@0 7 * @path ch12/12.8/S12.8_A5_T3.js
michael@0 8 * @description Checking if using internal loop label as an Identifier appears to be invalid
michael@0 9 * @negative
michael@0 10 */
michael@0 11
michael@0 12 (function(){
michael@0 13 LABEL_OUT : var x=0, y=0;
michael@0 14 LABEL_DO_LOOP : do {
michael@0 15 LABEL_IN : x++;
michael@0 16 if(x===10)
michael@0 17 return;
michael@0 18 break LABEL_IN;
michael@0 19 LABEL_IN_2 : y++;
michael@0 20
michael@0 21 function IN_DO_FUNC(){}
michael@0 22
michael@0 23 } while(0);
michael@0 24
michael@0 25 LABEL_ANOTHER_LOOP : do {
michael@0 26 ;
michael@0 27 } while(0);
michael@0 28
michael@0 29 function OUT_FUNC(){}
michael@0 30
michael@0 31 })();
michael@0 32

mercurial