Wed, 31 Dec 2014 07:53:36 +0100
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);
26 // ------- Comment #54 From Jason Orendorff
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();
34 // Assertion failure: fp2->fun && fp2->script,
35 // at ../jsinterp.cpp:5589
36 //
37 eval("let(x) function(){ x = this; }()");
39 reportCompare(expect, actual, summary);
41 exitFunc ('test');
42 }