michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributor: Geoff Garen michael@0: */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 452189; michael@0: var summary = "Don't shadow a readonly or setter proto-property"; michael@0: var expect = "PASS"; michael@0: var actual = "FAIL"; michael@0: michael@0: function c() { michael@0: this.x = 3; michael@0: } michael@0: michael@0: michael@0: new c; michael@0: Object.prototype.__defineSetter__('x', function(){ actual = expect; }) michael@0: new c; michael@0: michael@0: reportCompare(expect, actual, summary);