Changeset 201566 in webkit
- Timestamp:
- Jun 1, 2016, 1:32:57 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/js/parser-syntax-check-expected.txt (modified) (2 diffs)
-
LayoutTests/js/script-tests/parser-syntax-check.js (modified) (2 diffs)
-
LayoutTests/sputnik/Conformance/13_Function_Definition/S13_A5.html (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/parser/Parser.cpp (modified) (2 diffs)
-
Source/JavaScriptCore/tests/stress/trailing-comma-in-function-paramters.js (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r201557 r201566 1 2016-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 1 15 2016-06-01 Nael Ouedraogo <nael.ouedraogo@crf.canon.fr> 2 16 -
trunk/LayoutTests/js/parser-syntax-check-expected.txt
r201488 r201566 138 138 PASS Invalid: "a(5," 139 139 PASS Invalid: "function f() { a(5, }" 140 PASS Valid: "a(5,)" with ReferenceError141 PASS Valid:"function f() { a(5,) }"140 PASS Invalid: "a(5,)" 141 PASS Invalid: "function f() { a(5,) }" 142 142 PASS Invalid: "a(5,6" 143 143 PASS Invalid: "function f() { a(5,6 }" … … 173 173 PASS Invalid: "function f(a b) {}" 174 174 PASS Invalid: "function f() { function f(a b) {} }" 175 PASS Valid:"function f(a,) {}"176 PASS Valid:"function f() { function f(a,) {} }"175 PASS Invalid: "function f(a,) {}" 176 PASS Invalid: "function f() { function f(a,) {} }" 177 177 PASS Invalid: "function f(a," 178 178 PASS Invalid: "function f() { function f(a, }" -
trunk/LayoutTests/js/script-tests/parser-syntax-check.js
r201488 r201566 148 148 invalid("a(5"); 149 149 invalid("a(5,"); 150 valid("a(5,)");150 invalid("a(5,)"); 151 151 invalid("a(5,6"); 152 152 valid ("a(b[7], c <d> e.l, new a() > b)"); … … 168 168 invalid("function () {}"); 169 169 invalid("function f(a b) {}"); 170 valid("function f(a,) {}");170 invalid("function f(a,) {}"); 171 171 invalid("function f(a,"); 172 172 invalid("function f(a, 1) {}"); -
trunk/LayoutTests/sputnik/Conformance/13_Function_Definition/S13_A5.html
r201488 r201566 101 101 //CHECK#3 102 102 try{ 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') 105 105 } catch(e){ 106 106 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); 108 108 } 109 109 } -
trunk/Source/JavaScriptCore/ChangeLog
r201562 r201566 1 2016-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 1 15 2016-05-31 Geoffrey Garen <ggaren@apple.com> 2 16 -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r201542 r201566 1747 1747 TreeExpression defaultValue = 0; 1748 1748 1749 if (match(CLOSEPAREN))1750 break;1751 1752 1749 if (match(DOTDOTDOT)) { 1753 1750 next(); … … 3830 3827 next(TreeBuilder::DontBuildStrings); 3831 3828 3832 if (match(CLOSEPAREN))3833 break;3834 3835 3829 TreeExpression arg = parseArgument(context, argType); 3836 3830 propagateError();
Note:
See TracChangeset
for help on using the changeset viewer.