Changeset 90159 in webkit
- Timestamp:
- Jun 30, 2011, 2:41:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/js/eval-contained-syntax-error-expected.txt (added)
-
LayoutTests/fast/js/eval-contained-syntax-error.html (added)
-
LayoutTests/fast/js/script-tests/eval-contained-syntax-error.js (added)
-
LayoutTests/platform/chromium/fast/js/eval-contained-syntax-error-expected.txt (added)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/parser/Parser.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90158 r90159 1 2011-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 1 16 2011-06-30 Nate Chapin <japhet@chromium.org> 2 17 -
trunk/Source/JavaScriptCore/ChangeLog
r90157 r90159 1 2011-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 1 16 2011-06-30 Filip Pizlo <fpizlo@apple.com> 2 17 -
trunk/Source/JavaScriptCore/parser/Parser.h
r76248 r90159 44 44 class UString; 45 45 46 template <typename T> inline bool isEvalNode() { return false; } 47 template <> inline bool isEvalNode<EvalNode>() { return true; } 46 48 template <typename T> struct ParserArenaData : ParserArenaDeletable { T data; }; 47 49 … … 110 112 if (isFunctionBodyNode(static_cast<ParsedNode*>(0))) 111 113 *exception = createStackOverflowError(lexicalGlobalObject); 114 else if (isEvalNode<ParsedNode>()) 115 *exception = createSyntaxError(lexicalGlobalObject, errMsg); 112 116 else 113 117 *exception = addErrorInfo(&lexicalGlobalObject->globalData(), createSyntaxError(lexicalGlobalObject, errMsg), errLine, source);
Note:
See TracChangeset
for help on using the changeset viewer.