JavaScriptCore:
Reviewed by Maciej.
- Fixed <rdar://problem/
4534904> please do not treat "debugger" as
a reserved word while parsing JavaScript (and other ECMA reserved
words)
AKA
http://bugzilla.opendarwin.org/show_bug.cgi?id=6179
We treat "char" as a reserved word in JavaScript and firefox/IE do
not
(1) I unreserved most of the spec's "future reserved words" because
they're not reserved in IE or FF. (Most, but not all, because IE
somewhat randomly *does* reserve a few of them.)
(2) I made 'debugger' a legitimate statement that acts like an empty
statement because FF and IE support it.
* kjs/grammar.y:
* kjs/keywords.table:
LayoutTests:
- Tests for JavaScript reserved words and the 'debugger' statement
<rdar://problem/
4534904>
AKA
http://bugzilla.opendarwin.org/show_bug.cgi?id=6179
* fast/js/debugger-expected.txt: Added.
* fast/js/debugger.html: Added.
* fast/js/reserved-words-expected.txt: Added.
* fast/js/reserved-words.html: Added.
* fast/js/resources/debugger.js: Added.
* fast/js/resources/reserved-words.js: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14403
268f45cc-cd09-0410-ab3c-
d52691b4dbfc