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

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:084260fdf454
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 */
7
8 //-----------------------------------------------------------------------------
9 var BUGNUMBER = 452498;
10 var summary = 'TM: upvar2 regression tests';
11 var actual = '';
12 var expect = '';
13
14
15 //-----------------------------------------------------------------------------
16 test();
17 //-----------------------------------------------------------------------------
18
19 function test()
20 {
21 enterFunc ('test');
22 printBugNumber(BUGNUMBER);
23 printStatus (summary);
24
25
26 // ------- Comment #54 From Jason Orendorff
27
28 // Assertion failure: cg->flags & TCF_IN_FUNCTION
29 // at ../jsemit.cpp:1991
30 //
31 function f() { var x; eval("let x, x;"); }
32 f();
33
34 // Assertion failure: fp2->fun && fp2->script,
35 // at ../jsinterp.cpp:5589
36 //
37 eval("let(x) function(){ x = this; }()");
38
39 reportCompare(expect, actual, summary);
40
41 exitFunc ('test');
42 }

mercurial