Debian Codegraph @

rhino/testsrc/tests/js1_8_1/regress/regress-452498-051.js

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