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

// See bug 627984 comment 20.
var obj = {m: function () {}};
obj.watch("m", function () { throw 'FAIL'; });
var f = obj.m;  // don't call the watchpoint

reportCompare(0, 0, 'ok');