Closed Bug 452188 Opened 16 years ago Closed 13 years ago

|watch| and |delete| causes setter to act like a watchpoint (return value becomes new value)

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

x = 1;
__defineSetter__('x', function(){return 2;});
watch('x', function(){return 3;});
delete x;
x = 5;
print("x is " + this.x);

x is 2

This doesn't make sense to me.  Is the brief existence of a watchpoint somehow making the setter gain watchpoint semantics?
Now it says "x is 5".
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.