Skip to content

Commit 1075bef

Browse files
committed
JS: Comment out invalid syntax.
1 parent 0ca055c commit 1075bef

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

javascript/ql/test/library-tests/SSA/GetRhsNode/GetRhsNode.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
| tst.js:6:26:6:26 | { propC ... } = g() | tst.js:6:26:6:26 | d | tst.js:6:19:6:26 | propD: d |
55
| tst.js:8:22:8:25 | { array ... } = g() | tst.js:8:22:8:25 | elm1 | tst.js:8:22:8:25 | elm1 |
66
| tst.js:8:28:8:31 | { array ... } = g() | tst.js:8:28:8:31 | elm2 | tst.js:8:28:8:31 | elm2 |
7-
| tst.js:17:13:17:13 | ({ propB: b }) = g() | tst.js:4:16:4:16 | b | tst.js:17:6:17:13 | propB: b |
8-
| tst.js:19:13:19:13 | ({ prop ... ) = g() | tst.js:6:16:6:16 | c | tst.js:19:6:19:13 | propC: c |
9-
| tst.js:19:23:19:23 | ({ prop ... ) = g() | tst.js:6:26:6:26 | d | tst.js:19:16:19:23 | propD: d |
107
| tst.js:21:5:21:8 | [ elm1, elm2 ] = g() | tst.js:8:22:8:25 | elm1 | tst.js:21:5:21:8 | elm1 |
118
| tst.js:21:11:21:14 | [ elm1, elm2 ] = g() | tst.js:8:28:8:31 | elm2 | tst.js:21:11:21:14 | elm2 |
129
| tst.js:31:13:31:16 | [elm1, elm2] | tst.js:31:13:31:16 | elm1 | tst.js:31:13:31:16 | elm1 |

javascript/ql/test/library-tests/SSA/GetRhsNode/tst.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function f() {
1414
elm1;
1515
elm2;
1616

17-
({ propB: b }) = g();
17+
// { propB: b } = g(); // Unexpected token '='
1818

19-
({ propC: c, propD: d }) = g();
19+
// { propC: c, propD: d } = g(); // Invalid left-hand side in assignment
2020

2121
[ elm1, elm2 ] = g();
2222

0 commit comments

Comments
 (0)