From a004313509a9297e360665bc2eba623c84d7b744 Mon Sep 17 00:00:00 2001 From: norris Date: Thu, 18 Jun 1998 00:04:38 +0000 Subject: [PATCH] (Not part of Communicator build.) More functionality for debug print functions. --- js/ref/jsparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ref/jsparse.c b/js/ref/jsparse.c index d0873c2d371c..fb635eb7afa5 100644 --- a/js/ref/jsparse.c +++ b/js/ref/jsparse.c @@ -1618,9 +1618,10 @@ LookupArgOrVar(JSContext *cx, JSAtom *atom, JSTreeContext *tc, JSOp *opp, jsint *slotp) { JSObject *obj, *pobj; + JSFunction *fun; JSScopeProperty *sprop; - obj = cx->fp->scopeChain; + obj = js_FindVariableScope(cx, &fun); if (OBJ_GET_CLASS(cx, obj) != &js_FunctionClass) return JS_TRUE; if (InWithStatement(tc))