зеркало из https://github.com/github/codeql.git
add declaration for private field in syntax error test
This commit is contained in:
Родитель
e3189aaa47
Коммит
15e26666cd
|
@ -1,4 +1,4 @@
|
|||
| arrows.js:1:5:1:5 | Error: Argument name clash | Error: Argument name clash |
|
||||
| destructingPrivate.js:3:6:3:6 | Error: Unexpected token | Error: Unexpected token |
|
||||
| destructingPrivate.js:2:12:2:12 | Error: Unexpected token | Error: Unexpected token |
|
||||
| privateMethod.js:2:3:2:3 | Error: Only fields, not methods, can be declared private. | Error: Only fields, not methods, can be declared private. |
|
||||
| tst.js:2:12:2:12 | Error: Unterminated string constant | Error: Unterminated string constant |
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class C {
|
||||
#privDecl;
|
||||
bar() {
|
||||
{#privDecl} = this;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче