⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 90159 in webkit


Ignore:
Timestamp:
Jun 30, 2011, 2:41:58 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

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):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r90158 r90159  
     12011-06-30  Juan C. Montemayor  <jmont@apple.com>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        Web Inspector fails to display source for eval with syntax error
     6        https://bugs.webkit.org/show_bug.cgi?id=63583
     7
     8        Added new LayoutTest to check that the correct line number is added to a
     9        syntax error inside an eval statement.
     10
     11        * fast/js/eval-contained-syntax-error-expected.txt: Added.
     12        * fast/js/eval-contained-syntax-error.html: Added.
     13        * fast/js/script-tests/eval-contained-syntax-error.js: Added.
     14        * platform/chromium/fast/js/eval-contained-syntax-error-expected.txt: Added.
     15
    1162011-06-30  Nate Chapin  <japhet@chromium.org>
    217
  • trunk/Source/JavaScriptCore/ChangeLog

    r90157 r90159  
     12011-06-30  Juan C. Montemayor  <jmont@apple.com>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        Web Inspector fails to display source for eval with syntax error
     6        https://bugs.webkit.org/show_bug.cgi?id=63583
     7
     8        Web Inspector now displays a link to an eval statement that contains
     9        a syntax error.
     10
     11        * parser/Parser.h:
     12        (JSC::isEvalNode):
     13        (JSC::EvalNode):
     14        (JSC::Parser::parse):
     15
    1162011-06-30  Filip Pizlo  <fpizlo@apple.com>
    217
  • trunk/Source/JavaScriptCore/parser/Parser.h

    r76248 r90159  
    4444    class UString;
    4545
     46    template <typename T> inline bool isEvalNode() { return false; }
     47    template <> inline bool isEvalNode<EvalNode>() { return true; }
    4648    template <typename T> struct ParserArenaData : ParserArenaDeletable { T data; };
    4749
     
    110112            if (isFunctionBodyNode(static_cast<ParsedNode*>(0)))
    111113                *exception = createStackOverflowError(lexicalGlobalObject);
     114            else if (isEvalNode<ParsedNode>())
     115                *exception = createSyntaxError(lexicalGlobalObject, errMsg);
    112116            else
    113117                *exception = addErrorInfo(&lexicalGlobalObject->globalData(), createSyntaxError(lexicalGlobalObject, errMsg), errLine, source);
Note: See TracChangeset for help on using the changeset viewer.