michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: // See bug 627984 comment 20. michael@0: var obj = {m: function () {}}; michael@0: obj.watch("m", function () { throw 'FAIL'; }); michael@0: var f = obj.m; // don't call the watchpoint michael@0: michael@0: reportCompare(0, 0, 'ok');