Changeset 216934 in webkit
- Timestamp:
- May 16, 2017 10:12:16 AM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r216933 r216934 1 2017-05-16 Mark Lam <mark.lam@apple.com> 2 3 Gardening: rebased parser-syntax-check test results after r216891. 4 https://bugs.webkit.org/show_bug.cgi?id=172171 5 6 Not reviewed. 7 8 * js/parser-syntax-check-expected.txt: 9 * js/script-tests/parser-syntax-check.js: 10 1 11 2017-05-16 Ryan Haddad <ryanhaddad@apple.com> 2 12 -
trunk/LayoutTests/js/parser-syntax-check-expected.txt
r216891 r216934 1523 1523 PASS Invalid: "({ foo({a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1524 1524 PASS Invalid: "function f() { ({ foo({a},...a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1525 PASS Invalid: "({ foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."1526 PASS Invalid: "function f() { ({ foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."1525 PASS Invalid: "({ foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1526 PASS Invalid: "function f() { ({ foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1527 1527 PASS Invalid: "({ *foo({a},a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1528 1528 PASS Invalid: "function f() { ({ *foo({a},a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." … … 1533 1533 PASS Invalid: "({ *foo({a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1534 1534 PASS Invalid: "function f() { ({ *foo({a},...a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1535 PASS Invalid: "({ *foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."1536 PASS Invalid: "function f() { ({ *foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."1535 PASS Invalid: "({ *foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1536 PASS Invalid: "function f() { ({ *foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1537 1537 PASS Invalid: "({ async foo({a},a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1538 1538 PASS Invalid: "function f() { ({ async foo({a},a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." … … 1543 1543 PASS Invalid: "({ async foo({a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1544 1544 PASS Invalid: "function f() { ({ async foo({a},...a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters." 1545 PASS Invalid: "({ async foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."1546 PASS Invalid: "function f() { ({ async foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."1545 PASS Invalid: "({ async foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1546 PASS Invalid: "function f() { ({ async foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1547 1547 PASS Valid: "({ foo(a, ...b){} });" 1548 1548 PASS Valid: "function f() { ({ foo(a, ...b){} }); }" 1549 1549 PASS Valid: "({ foo({a}, ...b){} });" 1550 1550 PASS Valid: "function f() { ({ foo({a}, ...b){} }); }" 1551 PASS Valid: "({ foo({a, ...b}){} });"1552 PASS Valid: "function f() { ({ foo({a, ...b}){} }); }"1553 PASS Valid: "({ foo({b, ...a}, ...c){} });"1554 PASS Valid: "function f() { ({ foo({b, ...a}, ...c){} }); }"1551 PASS Invalid: "({ foo({a, ...b}){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1552 PASS Invalid: "function f() { ({ foo({a, ...b}){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1553 PASS Invalid: "({ foo({b, ...a}, ...c){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1554 PASS Invalid: "function f() { ({ foo({b, ...a}, ...c){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name." 1555 1555 Weird things that used to crash. 1556 1556 PASS Invalid: "or ([[{break //(elseifo (a=0;a<2;a++)n= -
trunk/LayoutTests/js/script-tests/parser-syntax-check.js
r216891 r216934 887 887 valid("({ foo(a, ...b){} });"); 888 888 valid("({ foo({a}, ...b){} });"); 889 valid("({ foo({a, ...b}){} });");890 valid("({ foo({b, ...a}, ...c){} });");889 invalid("({ foo({a, ...b}){} });"); 890 invalid("({ foo({b, ...a}, ...c){} });"); 891 891 892 892 debug("Weird things that used to crash.");
Note: See TracChangeset
for help on using the changeset viewer.