blob: 488054a58230ece21037a2c2b9ea145c526b2434 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001Tests for ES6 class syntax containing semicolon in the class body
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6PASS class A { foo;() { } } threw exception SyntaxError: Unexpected token ;.
7PASS class A { foo() ; { } } threw exception SyntaxError: Unexpected token ;.
8PASS class A { get ; foo() { } } threw exception SyntaxError: Unexpected token ;.
9PASS class A { get foo;() { } } threw exception SyntaxError: Unexpected token ;.
10PASS class A { get foo() ; { } } threw exception SyntaxError: Unexpected token ;.
11PASS class A { set ; foo(x) { } } threw exception SyntaxError: Unexpected token ;.
12PASS class A { set foo;(x) { } } threw exception SyntaxError: Unexpected token ;.
13PASS class A { set foo(x) ; { } } threw exception SyntaxError: Unexpected token ;.
14PASS class A { ; } did not throw exception.
15PASS class A { foo() { } ; } did not throw exception.
16PASS class A { get foo() { } ; } did not throw exception.
17PASS class A { set foo(x) { } ; } did not throw exception.
18PASS class A { static foo() { } ; } did not throw exception.
19PASS class A { static get foo() { } ; } did not throw exception.
20PASS class A { static set foo(x) { } ; } did not throw exception.
21PASS class A { ; foo() { } } did not throw exception.
22PASS class A { ; get foo() { } } did not throw exception.
23PASS class A { ; set foo(x) { } } did not throw exception.
24PASS class A { ; static foo() { } } did not throw exception.
25PASS class A { ; static get foo() { } } did not throw exception.
26PASS class A { ; static set foo(x) { } } did not throw exception.
27PASS class A { foo() { } ; foo() {} } did not throw exception.
28PASS class A { foo() { } ; get foo() {} } did not throw exception.
29PASS class A { foo() { } ; set foo(x) {} } did not throw exception.
30PASS class A { foo() { } ; static foo() {} } did not throw exception.
31PASS class A { foo() { } ; static get foo() {} } did not throw exception.
32PASS class A { foo() { } ; static set foo(x) {} } did not throw exception.
33PASS class A { get foo() { } ; foo() {} } did not throw exception.
34PASS class A { get foo() { } ; get foo() {} } did not throw exception.
35PASS class A { get foo() { } ; set foo(x) {} } did not throw exception.
36PASS class A { get foo() { } ; static foo() {} } did not throw exception.
37PASS class A { get foo() { } ; static get foo() {} } did not throw exception.
38PASS class A { get foo() { } ; static set foo(x) {} } did not throw exception.
39PASS class A { set foo(x) { } ; foo() {} } did not throw exception.
40PASS class A { set foo(x) { } ; get foo() {} } did not throw exception.
41PASS class A { set foo(x) { } ; set foo(x) {} } did not throw exception.
42PASS class A { set foo(x) { } ; static foo() {} } did not throw exception.
43PASS class A { set foo(x) { } ; static get foo() {} } did not throw exception.
44PASS class A { set foo(x) { } ; static set foo(x) {} } did not throw exception.
45PASS class A { static foo() { } ; foo() {} } did not throw exception.
46PASS class A { static foo() { } ; get foo() {} } did not throw exception.
47PASS class A { static foo() { } ; set foo(x) {} } did not throw exception.
48PASS class A { static foo() { } ; static foo() {} } did not throw exception.
49PASS class A { static foo() { } ; static get foo() {} } did not throw exception.
50PASS class A { static foo() { } ; static set foo(x) {} } did not throw exception.
51PASS class A { static get foo() { } ; foo() {} } did not throw exception.
52PASS class A { static get foo() { } ; get foo() {} } did not throw exception.
53PASS class A { static get foo() { } ; set foo(x) {} } did not throw exception.
54PASS class A { static get foo() { } ; static foo() {} } did not throw exception.
55PASS class A { static get foo() { } ; static get foo() {} } did not throw exception.
56PASS class A { static get foo() { } ; static set foo(x) {} } did not throw exception.
57PASS class A { static set foo(x) { } ; foo() {} } did not throw exception.
58PASS class A { static set foo(x) { } ; get foo() {} } did not throw exception.
59PASS class A { static set foo(x) { } ; set foo(x) {} } did not throw exception.
60PASS class A { static set foo(x) { } ; static foo() {} } did not throw exception.
61PASS class A { static set foo(x) { } ; static get foo() {} } did not throw exception.
62PASS class A { static set foo(x) { } ; static set foo(x) {} } did not throw exception.
63PASS successfullyParsed is true
64
65TEST COMPLETE