-fixed <rdar://problem/4168186> JavaScript fails to throw exceptions
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2005 17:47:12 +0000 (17:47 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2005 17:47:12 +0000 (17:47 +0000)
commitd368bdcb2b1f8b5149cfaa8d6333e397095ca83b
tree364150c6f77ac2a7b5dff07147e478cc60273559
parent371577525febdf21606d0ed37c02ef8df7106d15
    -fixed <rdar://problem/4168186> JavaScript fails to throw exceptions
        for invalid return statements

        relevant tests:
            ecma/Statements/12.9-1-n.js
            ecma_2/Exceptions/lexical-052.js
            ecma_2/Exceptions/statement-009.js

        Reviewed by sullivan.

        * kjs/nodes.cpp:
        (ReturnNode::execute): now throws exception if return is not inside
        a function.

        * tests/mozilla/expected.html: updated to reflect fix

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/nodes.cpp
JavaScriptCore/tests/mozilla/expected.html