Changeset 216934 in webkit


Ignore:
Timestamp:
May 16, 2017 10:12:16 AM (7 years ago)
Author:
mark.lam@apple.com
Message:

Gardening: rebased parser-syntax-check test results after r216891.
https://bugs.webkit.org/show_bug.cgi?id=172171

Not reviewed.

  • js/parser-syntax-check-expected.txt:
  • js/script-tests/parser-syntax-check.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r216933 r216934  
     12017-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
    1112017-05-16  Ryan Haddad  <ryanhaddad@apple.com>
    212
  • trunk/LayoutTests/js/parser-syntax-check-expected.txt

    r216891 r216934  
    15231523PASS Invalid: "({ foo({a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."
    15241524PASS 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."
     1525PASS Invalid: "({ foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
     1526PASS Invalid: "function f() { ({ foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
    15271527PASS Invalid: "({ *foo({a},a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."
    15281528PASS Invalid: "function f() { ({ *foo({a},a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."
     
    15331533PASS Invalid: "({ *foo({a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."
    15341534PASS 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."
     1535PASS Invalid: "({ *foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
     1536PASS Invalid: "function f() { ({ *foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
    15371537PASS Invalid: "({ async foo({a},a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."
    15381538PASS Invalid: "function f() { ({ async foo({a},a){} }); }". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."
     
    15431543PASS Invalid: "({ async foo({a},...a){} });". Produced the following syntax error: "SyntaxError: Duplicate parameter 'a' not allowed in function with destructuring parameters."
    15441544PASS 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."
     1545PASS Invalid: "({ async foo({...a},...a){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
     1546PASS Invalid: "function f() { ({ async foo({...a},...a){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
    15471547PASS Valid:   "({ foo(a, ...b){} });"
    15481548PASS Valid:   "function f() { ({ foo(a, ...b){} }); }"
    15491549PASS Valid:   "({ foo({a}, ...b){} });"
    15501550PASS 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){} }); }"
     1551PASS Invalid: "({ foo({a, ...b}){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
     1552PASS Invalid: "function f() { ({ foo({a, ...b}){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
     1553PASS Invalid: "({ foo({b, ...a}, ...c){} });". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
     1554PASS Invalid: "function f() { ({ foo({b, ...a}, ...c){} }); }". Produced the following syntax error: "SyntaxError: Unexpected token '...'. Expected a property name."
    15551555Weird things that used to crash.
    15561556PASS Invalid: "or ([[{break //(elseifo (a=0;a<2;a++)n=
  • trunk/LayoutTests/js/script-tests/parser-syntax-check.js

    r216891 r216934  
    887887valid("({ foo(a, ...b){} });");
    888888valid("({ foo({a}, ...b){} });");
    889 valid("({ foo({a, ...b}){} });");
    890 valid("({ foo({b, ...a}, ...c){} });");
     889invalid("({ foo({a, ...b}){} });");
     890invalid("({ foo({b, ...a}, ...c){} });");
    891891
    892892debug("Weird things that used to crash.");
Note: See TracChangeset for help on using the changeset viewer.