⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283600 in webkit


Ignore:
Timestamp:
Oct 5, 2021, 10:20:07 PM (5 years ago)
Author:
sbarati@apple.com
Message:

Don't pass DontBuildStrings to next token after parsing an empty parameter list
https://bugs.webkit.org/show_bug.cgi?id=225094
<rdar://problem/77231778>

Reviewed by Yusuke Suzuki.

JSTests:

  • stress/dont-pass-DontBuildStrings-when-building-empty-arguments-list.js: Added.

(main.a.prototype.g.toString.string_appeared_here):
(main.a):
(main):

Source/JavaScriptCore:

We might need the string, it turns out!

  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parseArguments):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r283567 r283600  
     12021-10-05  Saam Barati  <sbarati@apple.com>
     2
     3        Don't pass DontBuildStrings to next token after parsing an empty parameter list
     4        https://bugs.webkit.org/show_bug.cgi?id=225094
     5        <rdar://problem/77231778>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * stress/dont-pass-DontBuildStrings-when-building-empty-arguments-list.js: Added.
     10        (main.a.prototype.g.toString.string_appeared_here):
     11        (main.a):
     12        (main):
     13
    1142021-10-05  Mark Lam  <mark.lam@apple.com>
    215
  • trunk/Source/JavaScriptCore/ChangeLog

    r283572 r283600  
     12021-10-05  Saam Barati  <sbarati@apple.com>
     2
     3        Don't pass DontBuildStrings to next token after parsing an empty parameter list
     4        https://bugs.webkit.org/show_bug.cgi?id=225094
     5        <rdar://problem/77231778>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        We might need the string, it turns out!
     10
     11        * parser/Parser.cpp:
     12        (JSC::Parser<LexerType>::parseArguments):
     13
    1142021-10-05  Patrick Angle  <pangle@apple.com>
    215
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r282968 r283600  
    49814981    JSTokenLocation location(tokenLocation());
    49824982    if (match(CLOSEPAREN)) {
    4983         next(TreeBuilder::DontBuildStrings);
     4983        next();
    49844984        return context.createArguments();
    49854985    }
Note: See TracChangeset for help on using the changeset viewer.