Skip to content

Commit 365727c

Browse files
Copilotasgerf
andauthored
Test await and yield property names
Co-authored-by: asgerf <316427+asgerf@users.noreply.github.com>
1 parent bc58415 commit 365727c

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import javascript
22

3-
from Expr e
4-
where e.toString() = "this expression should not exist"
5-
select e
3+
from JSParseError err
4+
select err
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
semmle-extractor-options: --tolerate-parse-errors
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
const pool = { await() { return 42; } };
2+
const generator = { yield() { return 42; } };
23

34
async function issue22499() {
45
return await pool.await();
56
}
7+
8+
function* yieldPropertyName() {
9+
return generator.yield();
10+
}

0 commit comments

Comments
 (0)