diff --git a/index.js b/index.js index 499c8e3..db05621 100644 --- a/index.js +++ b/index.js @@ -70,7 +70,7 @@ function preprocess(func) { //Retrieves a local variable function createLocal(id) { - var nstr = prefix + id.replace(/\_/g, "__") + var nstr = id !== 'arguments' ? prefix + id.replace(/\_/g, "__") : 'arguments' localVars.push(nstr) return nstr } @@ -192,4 +192,4 @@ function preprocess(func) { return routine } -module.exports = preprocess \ No newline at end of file +module.exports = preprocess