2011-06-30 Juan C. Montemayor <jmont@apple.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 21:41:58 +0000 (21:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 21:41:58 +0000 (21:41 +0000)
commita89d302a0c19049f11f87cd3cae944e3cd77a119
treed0cac48b5a831caf8e2f8f86690f3975aeb34ba1
parent009648df8bfdc0d1c96a7ab16c1988e6418bd68e
2011-06-30  Juan C. Montemayor  <jmont@apple.com>

        Reviewed by Geoffrey Garen.

        Web Inspector fails to display source for eval with syntax error
        https://bugs.webkit.org/show_bug.cgi?id=63583

        Added new LayoutTest to check that the correct line number is added to a
        syntax error inside an eval statement.

        * fast/js/eval-contained-syntax-error-expected.txt: Added.
        * fast/js/eval-contained-syntax-error.html: Added.
        * fast/js/script-tests/eval-contained-syntax-error.js: Added.
        * platform/chromium/fast/js/eval-contained-syntax-error-expected.txt: Added.
2011-06-30  Juan C. Montemayor  <jmont@apple.com>

        Reviewed by Geoffrey Garen.

        Web Inspector fails to display source for eval with syntax error
        https://bugs.webkit.org/show_bug.cgi?id=63583

        Web Inspector now displays a link to an eval statement that contains
        a syntax error.

        * parser/Parser.h:
        (JSC::isEvalNode):
        (JSC::EvalNode):
        (JSC::Parser::parse):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/js/eval-contained-syntax-error-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/eval-contained-syntax-error.html [new file with mode: 0644]
LayoutTests/fast/js/script-tests/eval-contained-syntax-error.js [new file with mode: 0644]
LayoutTests/platform/chromium/fast/js/eval-contained-syntax-error-expected.txt [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/parser/Parser.h