[Webkit-unassigned] [Bug 62613] No context for javascript parse errors.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 14 11:12:19 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62613
--- Comment #3 from Geoffrey Garen <ggaren at apple.com> 2011-06-14 11:12:19 PST ---
(From update of attachment 97047)
View in context: https://bugs.webkit.org/attachment.cgi?id=97047&action=review
> Source/JavaScriptCore/parser/JSParser.cpp:156
> + m_errorMessage = UString(String::format("Unexpected token '%c'", source[tokenStart()]).impl());
Is one character of context enough? What does this print when the unexpected token is "return" or "break" or "continue" or "if" or something like that? I think you may need the full token as a string.
e.g.:
function f() { return if; } // Should be: "Unexpected token: 'if'".
return; // Should be: "Unexpected token: 'return'".
break; // Should be: "Unexpected token: 'break'".
continue; // Should be: "Unexpected token: 'continue'".
a[0]]; // I think you have this one right: "Unexpected token: ']'".
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list