JavaScriptCore:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 May 2006 02:54:40 +0000 (02:54 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 May 2006 02:54:40 +0000 (02:54 +0000)
commitc8d13f26c427f7d0d306cdafc458e3011113ee08
tree3fbbf34fd14710168e98c378d903ff496a4438bc
parent544956b788574b2e46a73a07a6b426840ce9e759
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
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/grammar.y
JavaScriptCore/kjs/keywords.table
LayoutTests/ChangeLog
LayoutTests/fast/js/debugger-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/debugger.html [new file with mode: 0644]
LayoutTests/fast/js/reserved-words-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/reserved-words.html [new file with mode: 0644]
LayoutTests/fast/js/resources/debugger.js [new file with mode: 0644]
LayoutTests/fast/js/resources/reserved-words.js [new file with mode: 0644]