mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
9 lines
327 B
JavaScript
9 lines
327 B
JavaScript
var cp = require("child_process")
|
|
|
|
module.exports = function (name) {
|
|
cp.exec("rm -rf " + name); // OK - this file belongs in a sub-"module", and is not the primary exported module.
|
|
};
|
|
|
|
module.exports.foo = function (name) {
|
|
cp.exec("rm -rf " + name); // NOT OK - this is being called explicitly from child_process-test.js
|
|
}; |