summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/extensions/object-toSource-undefined-getter.js
blob: a207e00c933ed48ff2d31cf6fd06fe8f692fa938 (plain)
1
2
3
4
5
6
7
8
9
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/ */

var desc = { get: undefined, set: undefined, configurable: true, enumerable: true };
var obj = Object.defineProperty({}, "prop", desc);
assertEq(obj.toSource(), "({})");

if (typeof reportCompare === "function")
    reportCompare(0, 0);