mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: Add test case
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
| destructuring-export-client.js:3:8:3:41 | // trac ... ort-foo | Failed to track destructuring-export-foo here. |
|
||||
| destructuring-export-client.js:4:8:4:41 | // trac ... ort-bar | Failed to track destructuring-export-bar here. |
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { foo, bar } from './destructuring-export';
|
||||
|
||||
foo(); // track: destructuring-export-foo
|
||||
bar(); // track: destructuring-export-bar
|
||||
@@ -0,0 +1,4 @@
|
||||
export const {
|
||||
foo, // name: destructuring-export-foo
|
||||
bar, // name: destructuring-export-bar
|
||||
} = new Something();
|
||||
Reference in New Issue
Block a user