Use the right shape when watching objects (bug 624050, r=jimb).

This commit is contained in:
David Anderson 2011-01-08 15:28:31 -08:00
parent 3614636778
commit a869e7d227

View File

@ -725,6 +725,9 @@ js_watch_set(JSContext *cx, JSObject *obj, jsid id, Value *vp)
return JS_FALSE;
}
/* Handler could have redefined the shape; see bug 624050. */
shape = wp->shape;
/*
* Pass the output of the handler to the setter. Security wrappers
* prevent any funny business between watchpoints and setters.