blob: 43b3e4146a2a78c84c3767bb3c9a1af0711c86a4 (
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
|
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
//-----------------------------------------------------------------------------
var BUGNUMBER = 568786;
var summary =
'"Assertion failure: !(attrs & (JSPROP_GETTER | JSPROP_SETTER))," with ' +
'Object.defineProperty';
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var o = { x: function(){} };
Object.defineProperty(o, "x", { get: function(){} });
/******************************************************************************/
if (typeof reportCompare === "function")
reportCompare(true, true);
print("All tests passed!");
|