diff --git a/test/webkit/class-syntax-declaration-expected.txt b/test/webkit/class-syntax-declaration-expected.txt index f1466c5114..a424edfe90 100644 --- a/test/webkit/class-syntax-declaration-expected.txt +++ b/test/webkit/class-syntax-declaration-expected.txt @@ -32,12 +32,12 @@ PASS class X { constructor() {} static set prototype() {} } threw exception Synt PASS class X { constructor() {} prototype() { return instanceMethodValue; } } did not throw exception. PASS class X { constructor() {} prototype() { return instanceMethodValue; } }; (new X).prototype() is instanceMethodValue PASS class X { constructor() {} set foo(a) {} } did not throw exception. -FAIL class X { constructor() {} set foo({x, y}) {} } should not throw exception. Threw exception SyntaxError: Unexpected token {. +PASS class X { constructor() {} set foo({x, y}) {} } did not throw exception. PASS class X { constructor() {} set foo() {} } threw exception SyntaxError: Setter must have exactly one formal parameter.. PASS class X { constructor() {} set foo(a, b) {} } threw exception SyntaxError: Setter must have exactly one formal parameter.. PASS class X { constructor() {} get foo() {} } did not throw exception. PASS class X { constructor() {} get foo(x) {} } threw exception SyntaxError: Getter must not have any formal parameters.. -PASS class X { constructor() {} get foo({x, y}) {} } threw exception SyntaxError: Unexpected token {. +PASS class X { constructor() {} get foo({x, y}) {} } threw exception SyntaxError: Getter must not have any formal parameters.. PASS successfullyParsed is true TEST COMPLETE diff --git a/test/webkit/class-syntax-declaration.js b/test/webkit/class-syntax-declaration.js index 3c9aed7441..f8ecdbb151 100644 --- a/test/webkit/class-syntax-declaration.js +++ b/test/webkit/class-syntax-declaration.js @@ -21,7 +21,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// Flags: --harmony-sloppy +// Flags: --harmony-sloppy --harmony-destructuring-bind description('Tests for ES6 class syntax declarations'); diff --git a/test/webkit/class-syntax-expression-expected.txt b/test/webkit/class-syntax-expression-expected.txt index aa1cfb76b0..5bcaf002f8 100644 --- a/test/webkit/class-syntax-expression-expected.txt +++ b/test/webkit/class-syntax-expression-expected.txt @@ -30,12 +30,12 @@ PASS x = class { constructor() {} static set prototype() {} } threw exception Sy PASS x = class { constructor() {} prototype() { return instanceMethodValue; } } did not throw exception. PASS x = class { constructor() {} prototype() { return instanceMethodValue; } }; (new x).prototype() is instanceMethodValue PASS x = class { constructor() {} set foo(a) {} } did not throw exception. -FAIL x = class { constructor() {} set foo({x, y}) {} } should not throw exception. Threw exception SyntaxError: Unexpected token {. +PASS x = class { constructor() {} set foo({x, y}) {} } did not throw exception. PASS x = class { constructor() {} set foo() {} } threw exception SyntaxError: Setter must have exactly one formal parameter.. PASS x = class { constructor() {} set foo(a, b) {} } threw exception SyntaxError: Setter must have exactly one formal parameter.. PASS x = class { constructor() {} get foo() {} } did not throw exception. PASS x = class { constructor() {} get foo(x) {} } threw exception SyntaxError: Getter must not have any formal parameters.. -PASS x = class { constructor() {} get foo({x, y}) {} } threw exception SyntaxError: Unexpected token {. +PASS x = class { constructor() {} get foo({x, y}) {} } threw exception SyntaxError: Getter must not have any formal parameters.. PASS successfullyParsed is true TEST COMPLETE diff --git a/test/webkit/class-syntax-expression.js b/test/webkit/class-syntax-expression.js index 3272b81f7e..182afb1ff0 100644 --- a/test/webkit/class-syntax-expression.js +++ b/test/webkit/class-syntax-expression.js @@ -21,7 +21,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// Flags: --harmony-sloppy +// Flags: --harmony-sloppy --harmony-destructuring-bind description('Tests for ES6 class syntax expressions');