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

Changeset 284830 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 2:50:57 PM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r283600. rdar://problem/84625586

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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283600 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612-branch
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612-branch/JSTests/ChangeLog

    r284426 r284830  
     12021-10-25  Null  <null@apple.com>
     2
     3        Cherry-pick r283600. rdar://problem/84625586
     4
     5    Don't pass DontBuildStrings to next token after parsing an empty parameter list
     6    https://bugs.webkit.org/show_bug.cgi?id=225094
     7    <rdar://problem/77231778>
     8   
     9    Reviewed by Yusuke Suzuki.
     10   
     11    JSTests:
     12   
     13    * stress/dont-pass-DontBuildStrings-when-building-empty-arguments-list.js: Added.
     14    (main.a.prototype.g.toString.string_appeared_here):
     15    (main.a):
     16    (main):
     17   
     18    Source/JavaScriptCore:
     19   
     20    We might need the string, it turns out!
     21   
     22    * parser/Parser.cpp:
     23    (JSC::Parser<LexerType>::parseArguments):
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2021-10-05  Saam Barati  <sbarati@apple.com>
     29
     30            Don't pass DontBuildStrings to next token after parsing an empty parameter list
     31            https://bugs.webkit.org/show_bug.cgi?id=225094
     32            <rdar://problem/77231778>
     33
     34            Reviewed by Yusuke Suzuki.
     35
     36            * stress/dont-pass-DontBuildStrings-when-building-empty-arguments-list.js: Added.
     37            (main.a.prototype.g.toString.string_appeared_here):
     38            (main.a):
     39            (main):
     40
    1412021-10-18  Russell Epstein  <repstein@apple.com>
    242
  • branches/safari-612-branch/Source/JavaScriptCore/ChangeLog

    r284812 r284830  
     12021-10-25  Null  <null@apple.com>
     2
     3        Cherry-pick r283600. rdar://problem/84625586
     4
     5    Don't pass DontBuildStrings to next token after parsing an empty parameter list
     6    https://bugs.webkit.org/show_bug.cgi?id=225094
     7    <rdar://problem/77231778>
     8   
     9    Reviewed by Yusuke Suzuki.
     10   
     11    JSTests:
     12   
     13    * stress/dont-pass-DontBuildStrings-when-building-empty-arguments-list.js: Added.
     14    (main.a.prototype.g.toString.string_appeared_here):
     15    (main.a):
     16    (main):
     17   
     18    Source/JavaScriptCore:
     19   
     20    We might need the string, it turns out!
     21   
     22    * parser/Parser.cpp:
     23    (JSC::Parser<LexerType>::parseArguments):
     24   
     25   
     26    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     27
     28    2021-10-05  Saam Barati  <sbarati@apple.com>
     29
     30            Don't pass DontBuildStrings to next token after parsing an empty parameter list
     31            https://bugs.webkit.org/show_bug.cgi?id=225094
     32            <rdar://problem/77231778>
     33
     34            Reviewed by Yusuke Suzuki.
     35
     36            We might need the string, it turns out!
     37
     38            * parser/Parser.cpp:
     39            (JSC::Parser<LexerType>::parseArguments):
     40
    1412021-10-25  Null  <null@apple.com>
    242
  • branches/safari-612-branch/Source/JavaScriptCore/parser/Parser.cpp

    r279448 r284830  
    49824982    JSTokenLocation location(tokenLocation());
    49834983    if (match(CLOSEPAREN)) {
    4984         next(TreeBuilder::DontBuildStrings);
     4984        next();
    49854985        return context.createArguments();
    49864986    }
Note: See TracChangeset for help on using the changeset viewer.