Files
codeql/javascript/ql/examples/snippets/yieldundefined.ql
2019-08-02 15:33:40 +02:00

16 lines
294 B
Plaintext

/**
* @id js/examples/yieldundefined
* @name Empty yield
* @description Finds yield expressions without an operand
* @tags generator
* yield
* ECMAScript 6
* ECMAScript 2015
*/
import javascript
from YieldExpr yield
where not exists(yield.getOperand())
select yield