Bug 19359: JavaScriptCore behaves differently from FF2/3 and IE when handling context...
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Aug 2008 09:58:21 +0000 (09:58 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Aug 2008 09:58:21 +0000 (09:58 +0000)
commitdb60e7385c5c8ad891ff57b4f679961767cd82ab
tree043944429745a6bf35a3b33c0e5f13e9e574037e
parent030f6a57902579bb2a38d683a7c79b8738de1fcc
Bug 19359: JavaScriptCore behaves differently from FF2/3 and IE when handling context in catch statement
<https://bugs.webkit.org/show_bug.cgi?id=19359>

Reviewed by Cameron Zwarich

Make our catch behave like Firefox and IE, we do this by using a StaticScopeObject
instead of a generic JSObject for the scope node.  We still don't make use of the
fact that we have a static scope inside the catch block, so the internal performance
of the catch block is not improved, even though technically it would be possible to
do so.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/VM/CodeBlock.cpp
JavaScriptCore/VM/CodeGenerator.cpp
JavaScriptCore/VM/CodeGenerator.h
JavaScriptCore/VM/Machine.cpp
JavaScriptCore/VM/Opcode.h
JavaScriptCore/kjs/JSStaticScopeObject.cpp
JavaScriptCore/kjs/JSStaticScopeObject.h
JavaScriptCore/kjs/nodes.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/resources/static-scope-object.js [new file with mode: 0644]
LayoutTests/fast/js/static-scope-object-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/static-scope-object.html [new file with mode: 0644]