mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
add initial support for expressions in TypeScript
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| tst.ts:7:9:7:19 | import.meta |
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
from Expr prop
|
||||
where prop instanceof ImportMetaExpr
|
||||
select prop
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
interface ImportMeta {
|
||||
wellKnownProperty: { a: number, b: string, c: boolean };
|
||||
}
|
||||
|
||||
var a = import.meta.wellKnownProperty.a;
|
||||
Reference in New Issue
Block a user