summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/extensions/regress-636697.js
blob: 6b3b1de370bfc34940095a83db12ad770814f4ec (plain)
1
2
3
4
5
6
7
8
9
10
11
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

var a = {set p(x) {}};
a.watch('p', function () {});
var b = Object.create(a);
b.watch('p', function () {});
delete b.p;
b.p = 0;

reportCompare(0, 0, 'ok');