Files
codeql/javascript/ql/test/query-tests/NodeJS/InvalidExport/tst3b.js
Max Schaefer 3cabc12be3 JavaScript: Teach InvalidExport to never flag module.exports = exports = ... and similar.
This was previously flagged if `exports` wasn't used any further. While it's true that the assignment to `exports` is redundant in this case, the assignment is also flagged by DeadStorOfLocal, so there is no point in InvalidExport flagging it as well.
2019-03-04 09:53:37 +00:00

3 lines
87 B
JavaScript

// OK: useless assignment flagged by other query
module.exports = exports = { a: 23 };