michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: var a = []; michael@0: for (var i = 0; i < 2; i++) { michael@0: a[i] = {m: function () {}}; michael@0: Object.defineProperty(a[i], "m", {writable: false}); michael@0: } michael@0: assertEq(a[0].m === a[1].m, false); michael@0: michael@0: reportCompare(0, 0, "ok");