Give the psuedo frame a scopeChain. bug 361571, r=brendan a=dveditz

This commit is contained in:
mrbkap%gmail.com 2006-11-30 21:54:39 +00:00
parent c0599e7b23
commit 43c0e6cd3f

View File

@ -424,6 +424,7 @@ js_watch_set(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
frame.fun = fun;
frame.argv = argv + 2;
frame.down = cx->fp;
frame.scopeChain = OBJ_GET_PARENT(cx, closure);
cx->fp = &frame;
ok = !wp->setter ||