Skip to content

Commit

Permalink
mozilla#155 - Change some variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
callicles committed Aug 25, 2014
1 parent dc8f252 commit 1eed704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions common/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
filename: results.filename,
line: node.loc.start.line,
col: node.loc.start.col
// node: node, // add a lot of cruft, removing by default
// this adds a snippet based on lines. Not really useful unless source is prettified first
});

aw_found_callback(rule, node);
Expand Down Expand Up @@ -403,8 +401,8 @@
aw_found_callback = found_callback;
}

function aw_setParser(parserToSet){
parser = parserToSet;
function aw_setParser(parserName){
parser = parserName ;
}

exports.rules = rules;
Expand All @@ -413,6 +411,6 @@
exports.loadRules = aw_loadRules;
exports.parseRule = aw_parseRule;
exports.setResultCallback = aw_setCallback;
exports.setParser = aw_setParser;
exports.parser = aw_setParser;

});
2 changes: 1 addition & 1 deletion scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var ScanJS = require(__dirname + '/common/scan');

var signatures = JSON.parse(fs.readFileSync(__dirname + "/common/rules.json", "utf8"));

ScanJS.setParser(parser);
ScanJS.parser(parser);
ScanJS.loadRules(signatures);

var argv = require('optimist').usage('Usage: $node scan.js -t [path/to/app] -o [resultFile.json]').demand(['t']).argv;
Expand Down

0 comments on commit 1eed704

Please sign in to comment.