summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/extensions/uneval/regress-380581.js
blob: 5420b3fe171c8b0cfb4a00873794b85eb2bd8857 (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
28
// |reftest| skip-if(!this.uneval)

/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


//-----------------------------------------------------------------------------
var BUGNUMBER = 380581;
var summary = 'Incorrect uneval with setter in object literal';
var actual = '';
var expect = '';


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

function test()
{
  printBugNumber(BUGNUMBER);
  printStatus (summary);
 
  expect = '(function() { })';
  actual = uneval(eval("(function() { })"));
  compareSource(expect, actual, summary);
}