2007-07-14 Cameron Zwarich <cwzwarich@uwaterloo.ca>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Jul 2007 17:04:03 +0000 (17:04 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 14 Jul 2007 17:04:03 +0000 (17:04 +0000)
commit2c2500e22e6acf590512ac83602dd879967e871c
tree1d813f7dd645b9e9d2d24a5af3d8cc5eb0a087a6
parent35dbbb9eb0bf40438e8994200c2e50af31b23ff7
2007-07-14  Cameron Zwarich  <cwzwarich@uwaterloo.ca>

        Reviewed by Darin.

        Fixes http://bugs.webkit.org/show_bug.cgi?id=13517,
              http://bugs.webkit.org/show_bug.cgi?id=14237, and
              the failure of test js1_5/Scope/regress-185485.js

        Bug 13517: DOM Exception 8 in finance.aol.com sub-page
        Bug 14237: Javascript "var" statement interprets initialization in the topmost function scope

        * kjs/nodes.cpp:
        (VarDeclNode::evaluate):
        * tests/mozilla/expected.html:

2007-07-14  Cameron Zwarich  <cwzwarich@uwaterloo.ca>

        Reviewed by Darin.

        Added tests for the following bugs:
        http://bugs.webkit.org/show_bug.cgi?id=13517
        http://bugs.webkit.org/show_bug.cgi?id=14237

        Bug 13517: DOM Exception 8 in finance.aol.com sub-page
        Bug 14237: Javascript "var" statement interprets initialization in the topmost function scope

        * fast/js/resources/vardecl-blocks-init.js: Added.
        * fast/js/resources/vardecl-preserve-arguments.js: Updated.
        * fast/js/vardecl-blocks-init-expected.txt: Added.
        * fast/js/vardecl-blocks-init.html: Added.
        * fast/js/vardecl-preserve-arguments-expected.txt: Updated result.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/nodes.cpp
JavaScriptCore/tests/mozilla/expected.html
LayoutTests/ChangeLog
LayoutTests/fast/js/resources/vardecl-blocks-init.js [new file with mode: 0644]
LayoutTests/fast/js/resources/vardecl-preserve-arguments.js
LayoutTests/fast/js/vardecl-blocks-init-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/vardecl-blocks-init.html [new file with mode: 0644]
LayoutTests/fast/js/vardecl-preserve-arguments-expected.txt