Closed Bug 605596 Opened 9 years ago Closed 2 years ago
.prototype .watch won't set watchpoints on setters defined with Object .define Property .
Object.prototype.watch will set watchpoints on setters created with __defineSetter__ or written in an object literal, but will not set watchpoints on setters created with Object.defineProperty. In the latter case, the shape is marked JSPROP_READONLY, and obj_watch declines to set the watchpoint.
Making this depend on the new watchpoint implementation, rather optimistically. I bet it fixes this. ;)
Depends on: 637985
Comment on attachment 484447 [details] [diff] [review] Add test for setting watchpoints on setters created with Object.defineProperty. This test passes now. I'll land this patch along with the trivial change in bug 604781.
Attachment #484447 - Flags: review+
watch() was removed in bug 638054.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 638054
You need to log in before you can comment on or make changes to this bug.