Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_8_1 / regress / regress-452498-052-a.js
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 #52 From Jason Orendorff
26
27
28 // Assertion failure: pn_arity == PN_FUNC || pn_arity == PN_NAME, at ../jsparse.h:444
29 // Here the function node has been morphed into a JSOP_TRUE node, but we're in
30 // FindFunArgs poking it anyway.
31   if (typeof timeout == 'function')
32   {
33     expectExitCode(6);
34     timeout(3);
35     while(function(){});
36   }
37
38   reportCompare(expect, actual, summary);
39
40   exitFunc ('test');
41 }