Changeset 35323 in webkit


Ignore:
Timestamp:
Jul 24, 2008 3:16:51 AM (16 years ago)
Author:
oliver@apple.com
Message:

Bug 20142: REGRESSION(r35245): /=/ weirdness
<https://bugs.webkit.org/show_bug.cgi?id=20142>

Reviewed by Alexey Proskuryakov.

When adding all the meta data needed for exception error messages
I accidentally clobbered the handling of regex beginning with /=.

Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r35319 r35323  
     12008-07-24  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        Bug 20142: REGRESSION(r35245): /=/ weirdness
     6        <https://bugs.webkit.org/show_bug.cgi?id=20142>
     7
     8        When adding all the meta data needed for exception error messages
     9        I accidentally clobbered the handling of regex beginning with /=.
     10
     11        * kjs/grammar.y:
     12
    1132008-07-23  Alp Toker  <alp@nuanti.com>
    214
  • trunk/JavaScriptCore/kjs/grammar.y

    r35250 r35323  
    298298                                            if (!l.scanRegExp())
    299299                                                YYABORT;
    300                                             RegExpNode* node = new RegExpNode(GLOBAL_DATA, l.pattern(), l.flags());
     300                                            RegExpNode* node = new RegExpNode(GLOBAL_DATA, "=" + l.pattern(), l.flags());
    301301                                            int size = l.pattern().size() + 2; // + 2 for the two /'s
    302302                                            SET_EXCEPTION_LOCATION(node, @1.first_column, @1.first_column + size, @1.first_column + size);
  • trunk/LayoutTests/ChangeLog

    r35321 r35323  
     12008-07-24  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        Test cases for regex starting with /=
     6
     7        * fast/js/regexp-divequal-expected.txt: Added.
     8        * fast/js/regexp-divequal.html: Added.
     9        * fast/js/resources/regexp-divequal.js: Added.
     10
    1112008-07-23  Julien Chaffraix  <jchaffraix@webkit.org>
    212
Note: See TracChangeset for help on using the changeset viewer.