js/src/tests/js1_8_1/regress/regress-452498-135.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 //-----------------------------------------------------------------------------
     7 var BUGNUMBER = 452498;
     8 var summary = 'TM: upvar2 regression tests';
     9 var actual = '';
    10 var expect = '';
    13 //-----------------------------------------------------------------------------
    14 test();
    15 //-----------------------------------------------------------------------------
    17 function test()
    18 {
    19   enterFunc ('test');
    20   printBugNumber(BUGNUMBER);
    21   printStatus (summary);
    23 // ------- Comment #135 From Gary Kwong [:nth10sd]
    25 // -j is not required:
    26 // ===
    28   for (let i = 0; i < 9; ++i) {
    29     let m = i;
    30     if (i % 3 == 1) {
    31       print('' + (function() { return m; })());
    32     }
    33   }
    35 // Assertion failure: fp2->fun && fp2->script, at ../jsinterp.cpp:5633
    36 // Opt crash [@ js_Interpret]
    37 // ===
    39   try
    40   {
    41     (x for each (c in []))
    42       x
    43       }
    44   catch(ex)
    45   {
    46   }
    48 // Assertion failure: ss->printer->pcstack, at ../jsopcode.cpp:909
    49 // ===
    50     try
    51     {
    52       (function(){for(; (this); ((window for (x in [])) for (y in []))) 0});
    53     }
    54     catch(ex)
    55     {
    56     }
    57 // Assertion failure: level >= tc->staticLevel, at ../jsparse.cpp:5773
    58 // ===
    59   eval(uneval( function(){
    60         ((function()y)() for each (x in this))
    61           } ))
    63 // Debug & opt crash [@ BindNameToSlot]
    65 // -j is required:
    66 // ===
    67     for (let a=0;a<3;++a) for (let b=0;b<3;++b) if ((g=a|(a%b))) with({}){}
    69 // Assertion failure: OBJ_IS_CLONED_BLOCK(obj), at ../jsobj.cpp:2392
    71   reportCompare(expect, actual, summary);
    73   exitFunc ('test');
    74 }

mercurial