|
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 // ------- Comment #79 From Jason Orendorff |
|
26 |
|
27 x; var x; function x() 0 |
|
28 |
|
29 // Assertion failure: !(pn->pn_dflags & flag), at ../jsparse.h:635 |
|
30 |
|
31 reportCompare(expect, actual, summary); |
|
32 |
|
33 exitFunc ('test'); |
|
34 } |