2006-04-18 Eric Seidel <eseidel@apple.com>
[WebKit-https.git] / JavaScriptCore / kjs / function_object.cpp
index d11012cbe52cd035ba3c8bb2c35f5a2ef3120c40..219b38d659649d4a2772d81038874ceaeb58455b 100644 (file)
@@ -204,7 +204,7 @@ JSObject* FunctionObjectImp::construct(ExecState* exec, const List& args, const
     return throwError(exec, SyntaxError, errMsg, errLine, sid, &sourceURL);
 
   ScopeChain scopeChain;
-  scopeChain.push(exec->dynamicInterpreter()->globalObject());
+  scopeChain.push(exec->lexicalInterpreter()->globalObject());
   FunctionBodyNode *bodyNode = progNode.get();
 
   FunctionImp* fimp = new DeclaredFunctionImp(exec, functionName, bodyNode, scopeChain);