mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Use the right shape when watching objects (bug 624050, r=jimb).
This commit is contained in:
parent
3614636778
commit
a869e7d227
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user