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

Changeset 201566 in webkit


Ignore:
Timestamp:
Jun 1, 2016, 1:32:57 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r201488.
https://bugs.webkit.org/show_bug.cgi?id=158268

Caused 23% regression on JetStream's crypto-md5 (Requested by
rniwa on #webkit).

Reverted changeset:

"[ESNext] Support trailing commas in function param lists"
https://bugs.webkit.org/show_bug.cgi?id=158020
http://trac.webkit.org/changeset/201488

Location:
trunk
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r201557 r201566  
     12016-06-01  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r201488.
     4        https://bugs.webkit.org/show_bug.cgi?id=158268
     5
     6        Caused 23% regression on JetStream's crypto-md5 (Requested by
     7        rniwa on #webkit).
     8
     9        Reverted changeset:
     10
     11        "[ESNext] Support trailing commas in function param lists"
     12        https://bugs.webkit.org/show_bug.cgi?id=158020
     13        http://trac.webkit.org/changeset/201488
     14
    1152016-06-01  Nael Ouedraogo  <nael.ouedraogo@crf.canon.fr>
    216
  • trunk/LayoutTests/js/parser-syntax-check-expected.txt

    r201488 r201566  
    138138PASS Invalid: "a(5,"
    139139PASS Invalid: "function f() { a(5, }"
    140 PASS Valid:   "a(5,)" with ReferenceError
    141 PASS Valid:  "function f() { a(5,) }"
     140PASS Invalid: "a(5,)"
     141PASS Invalid: "function f() { a(5,) }"
    142142PASS Invalid: "a(5,6"
    143143PASS Invalid: "function f() { a(5,6 }"
     
    173173PASS Invalid: "function f(a b) {}"
    174174PASS Invalid: "function f() { function f(a b) {} }"
    175 PASS Valid:  "function f(a,) {}"
    176 PASS Valid:  "function f() { function f(a,) {} }"
     175PASS Invalid: "function f(a,) {}"
     176PASS Invalid: "function f() { function f(a,) {} }"
    177177PASS Invalid: "function f(a,"
    178178PASS Invalid: "function f() { function f(a, }"
  • trunk/LayoutTests/js/script-tests/parser-syntax-check.js

    r201488 r201566  
    148148invalid("a(5");
    149149invalid("a(5,");
    150 valid("a(5,)");
     150invalid("a(5,)");
    151151invalid("a(5,6");
    152152valid  ("a(b[7], c <d> e.l, new a() > b)");
     
    168168invalid("function () {}");
    169169invalid("function f(a b) {}");
    170 valid("function f(a,) {}");
     170invalid("function f(a,) {}");
    171171invalid("function f(a,");
    172172invalid("function f(a, 1) {}");
  • trunk/LayoutTests/sputnik/Conformance/13_Function_Definition/S13_A5.html

    r201488 r201566  
    101101//CHECK#3
    102102try{
    103         eval("function __func(arg1, arg2, arg3,,){return arguments.length;}");
    104         testFailed('#3: eval("function __func(arg1, arg2, arg3,,){return arguments.length;}") lead to throwing exception')
     103        eval("function __func(arg1, arg2, arg3,){return arguments.length;}");
     104        testFailed('#3: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception')
    105105} catch(e){
    106106        if(!(e instanceof SyntaxError)){
    107                 testFailed('#3.1: eval("function __func(arg1, arg2, arg3,,){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
     107                testFailed('#3.1: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
    108108        }
    109109}
  • trunk/Source/JavaScriptCore/ChangeLog

    r201562 r201566  
     12016-06-01  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r201488.
     4        https://bugs.webkit.org/show_bug.cgi?id=158268
     5
     6        Caused 23% regression on JetStream's crypto-md5 (Requested by
     7        rniwa on #webkit).
     8
     9        Reverted changeset:
     10
     11        "[ESNext] Support trailing commas in function param lists"
     12        https://bugs.webkit.org/show_bug.cgi?id=158020
     13        http://trac.webkit.org/changeset/201488
     14
    1152016-05-31  Geoffrey Garen  <ggaren@apple.com>
    216
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r201542 r201566  
    17471747        TreeExpression defaultValue = 0;
    17481748
    1749         if (match(CLOSEPAREN))
    1750             break;
    1751        
    17521749        if (match(DOTDOTDOT)) {
    17531750            next();
     
    38303827        next(TreeBuilder::DontBuildStrings);
    38313828
    3832         if (match(CLOSEPAREN))
    3833             break;
    3834        
    38353829        TreeExpression arg = parseArgument(context, argType);
    38363830        propagateError();
Note: See TracChangeset for help on using the changeset viewer.