diff options
author | Johannes <mail@johannesewald.de> | 2012-06-04 19:46:12 +0400 |
---|---|---|
committer | Johannes <mail@johannesewald.de> | 2012-06-04 19:46:12 +0400 |
commit | 18ca74d9c514ad0df3ff92b4310afde36434e808 (patch) | |
tree | 8372545d55fee77c73517f290b1d4a4151e8b7b3 /lib | |
parent | 57cb8ac4d3a7026af4f0aa27a0cd2c99e7fac177 (diff) |
fixed bug when trying to leak private variables while using "module.exports = ..."
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getLeakingSrc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getLeakingSrc.js b/lib/getLeakingSrc.js index 8475908..882300b 100644 --- a/lib/getLeakingSrc.js +++ b/lib/getLeakingSrc.js @@ -4,13 +4,13 @@ * Returns the source code that will leak private vars.
*
* e.g.:
- * "exports.__ = {myPrivateVar: myPrivateVar};"
+ * "module.exports.__ = {myPrivateVar: myPrivateVar};"
*
* @param {Array<String>} leaks
* @return {String}
*/
function getLeakingSrc(leaks) {
- var src = "exports.__ = {",
+ var src = "module.exports.__ = {",
varName,
i;
|