summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-580544.js
blob: f6e57e4fa6cacd149b1bb76a0263ef956f87686c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

var gTestfile = 'regress-580544.js';
//-----------------------------------------------------------------------------
var BUGNUMBER = 580544;
var summary = 'Do not assert: new (this.prototype = this)';
var actual = 'No Crash';
var expect = 'No Crash';


//-----------------------------------------------------------------------------
test();
//-----------------------------------------------------------------------------

function test()
{
  printBugNumber(BUGNUMBER);
  printStatus (summary);

  try {
    new (this.prototype = this);
  } catch (e) {
  }

  reportCompare(expect, actual, summary);
}