~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

Viewing changes to js/src/tests/js1_8_1/regress/regress-452498-052-a.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// |reftest| skip-if(Android)
 
2
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
3
/*
 
4
 * Any copyright is dedicated to the Public Domain.
 
5
 * http://creativecommons.org/licenses/publicdomain/
 
6
 * Contributor: Jason Orendorff
 
7
 */
 
8
 
 
9
//-----------------------------------------------------------------------------
 
10
var BUGNUMBER = 452498;
 
11
var summary = 'TM: upvar2 regression tests';
 
12
var actual = '';
 
13
var expect = '';
 
14
 
 
15
 
 
16
//-----------------------------------------------------------------------------
 
17
test();
 
18
//-----------------------------------------------------------------------------
 
19
 
 
20
function test()
 
21
{
 
22
  enterFunc ('test');
 
23
  printBugNumber(BUGNUMBER);
 
24
  printStatus (summary);
 
25
 
 
26
// ------- Comment #52 From Jason Orendorff
 
27
 
 
28
 
 
29
// Assertion failure: pn_arity == PN_FUNC || pn_arity == PN_NAME, at ../jsparse.h:444
 
30
// Here the function node has been morphed into a JSOP_TRUE node, but we're in
 
31
// FindFunArgs poking it anyway.
 
32
  if (typeof timeout == 'function')
 
33
  {
 
34
    expectExitCode(6);
 
35
    timeout(3);
 
36
    while(function(){});
 
37
  }
 
38
 
 
39
  reportCompare(expect, actual, summary);
 
40
 
 
41
  exitFunc ('test');
 
42
}