2006-04-18 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Apr 2006 22:17:41 +0000 (22:17 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Apr 2006 22:17:41 +0000 (22:17 +0000)
commit911c06e071d09f66b178497dbcf11ccb0accd346
treeb691ff8eb62463102cc2f0b70f369579e8b9b803
parente58d23128cc97a71bcb7f8630c0250738d0b601a
2006-04-18  Eric Seidel  <eseidel@apple.com>

        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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13960 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/function_object.cpp
JavaScriptCore/kjs/scope_chain.cpp
JavaScriptCore/kjs/scope_chain.h
LayoutTests/ChangeLog
LayoutTests/fast/js/lexical-lookup-in-function-constructor-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/lexical-lookup-in-function-constructor.html [new file with mode: 0644]
LayoutTests/fast/js/resources/lexical-lookup-in-function-constructor-child.html [new file with mode: 0644]