js/src/tests/js1_8_1/regress/regress-452498-051.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 /*
     3  * Any copyright is dedicated to the Public Domain.
     4  * http://creativecommons.org/licenses/publicdomain/
     5  * Contributor: Jason Orendorff
     6  */
     8 //-----------------------------------------------------------------------------
     9 var BUGNUMBER = 452498;
    10 var summary = 'TM: upvar2 regression tests';
    11 var actual = '';
    12 var expect = '';
    15 //-----------------------------------------------------------------------------
    16 test();
    17 //-----------------------------------------------------------------------------
    19 function test()
    20 {
    21   enterFunc ('test');
    22   printBugNumber(BUGNUMBER);
    23   printStatus (summary);
    25 // ------- Comment #51 From Jason Orendorff
    27 // Assertion failure: UPVAR_FRAME_SKIP(uva->vector[i]) == 0
    28 // at ../jsopcode.cpp:2791
    29 //
    30 // when decompiling the eval code, which is:
    31 //
    32 // main:
    33 // 00000:  10  getupvar 0
    34 // 00003:  10  getprop "y"
    35 // 00006:  10  popv
    36 // 00007:  10  stop
    37   try
    38   {
    39     function f() { var x; eval("x.y"); }
    40     f();
    41   }
    42   catch(ex)
    43   {
    44   }
    45   reportCompare(expect, actual, summary);
    47   exitFunc ('test');
    48 }

mercurial