Skip to content

Commit 15e2666

Browse files
committed
add declaration for private field in syntax error test
1 parent e3189aa commit 15e2666

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
| arrows.js:1:5:1:5 | Error: Argument name clash | Error: Argument name clash |
2-
| destructingPrivate.js:3:6:3:6 | Error: Unexpected token | Error: Unexpected token |
2+
| destructingPrivate.js:2:12:2:12 | Error: Unexpected token | Error: Unexpected token |
33
| privateMethod.js:2:3:2:3 | Error: Only fields, not methods, can be declared private. | Error: Only fields, not methods, can be declared private. |
44
| tst.js:2:12:2:12 | Error: Unterminated string constant | Error: Unterminated string constant |

javascript/ql/test/query-tests/LanguageFeatures/SyntaxError/destructingPrivate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
class C {
2+
#privDecl;
23
bar() {
34
{#privDecl} = this;
45
}

0 commit comments

Comments
 (0)