Semmle 1.22
Skip to end of metadata
Go to start of metadata

Finds yield expressions without an operand

import javascript

from YieldExpr yield
where not exists(yield.getOperand())
select yield