Ignore:
Timestamp:
Apr 18, 2006, 3:17:41 PM (19 years ago)
Author:
eseidel
Message:

2006-04-18 Eric Seidel <[email protected]>

Reviewed by ggaren.

Fix "new Function()" to correctly use lexical scoping.
Add ScopeChain::print() function for debugging.
<rdar://problem/4067864> REGRESSION (125-407): JavaScript failure on PeopleSoft REN Server

  • kjs/function_object.cpp: (FunctionObjectImp::construct):
  • kjs/scope_chain.cpp: (KJS::ScopeChain::print):
  • kjs/scope_chain.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function_object.cpp

    r13465 r13960  
    205205
    206206  ScopeChain scopeChain;
    207   scopeChain.push(exec->dynamicInterpreter()->globalObject());
     207  scopeChain.push(exec->lexicalInterpreter()->globalObject());
    208208  FunctionBodyNode *bodyNode = progNode.get();
    209209
Note: See TracChangeset for help on using the changeset viewer.