JS: Fix implicit this

This commit is contained in:
Asger F
2023-03-03 13:43:17 +01:00
parent f4b13e0955
commit 37999eaea0

View File

@@ -98,7 +98,7 @@ class ImportDeclaration extends Stmt, Import, @import_declaration {
* import foo from "foo" assert { type: "json" };
* ```
*/
ObjectExpr getImportAssertion() { result = getChildExpr(-10) }
ObjectExpr getImportAssertion() { result = this.getChildExpr(-10) }
/** Gets the `i`th import specifier of this import declaration. */
ImportSpecifier getSpecifier(int i) { result = getChildExpr(i) }