mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Merge pull request #7119 from github/max-schaefer/api-graphs-property-copies
Approved by asgerf
This commit is contained in:
9
javascript/ql/test/ApiGraphs/async-await/tst.ts
Normal file
9
javascript/ql/test/ApiGraphs/async-await/tst.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { readFile } from 'fs/promises';
|
||||
|
||||
async function readFileUtf8(path: string): Promise<string> {
|
||||
return readFile(path, { encoding: 'utf8' });
|
||||
}
|
||||
|
||||
async function test(path: string) {
|
||||
await readFileUtf8(path); /* use (promised (return (member readFile (member exports (module fs/promises))))) */
|
||||
}
|
||||
Reference in New Issue
Block a user