An update on Object.observe

Boris Zbarsky bzbarsky at mit.edu
Tue Nov 3 02:11:02 UTC 2015


On 11/2/15 4:55 PM, Andrea Giammarchi wrote:
> I agree with Benoit and I think there is a reason
> `Object.prototype.watch` is still in Firefox and  won't go away any time
> soon

As far as I know the only reason it's there and hasn't been removed is 
because it's used to implement debugger watchpoints [1].  And the only 
reason it's web-exposed is because SpiderMonkey has not prioritized 
being able to expose APIs to privileged code but not the web (something 
that think should get fixed).

-Boris

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=934669


More information about the es-discuss mailing list