blob: 28adc5552560667135337013251a19e728519a45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
var a = [];
for (var i = 0; i < 2; i++) {
a[i] = {m: function () {}};
Object.defineProperty(a[i], "m", {writable: false});
}
assertEq(a[0].m === a[1].m, false);
reportCompare(0, 0, "ok");
|