JavaScript: Teach Function.isGenerator to check for yield.

This commit is contained in:
Max Schaefer
2019-03-13 14:56:32 +00:00
parent 6baf52614e
commit 69c63110c1
3 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
function outer() {
function inner() {
yield 1;
}
inner().next()
}
// semmle-extractor-options: --experimental