From f4c536b749735a0240da08386d6784767f95cb5d Mon Sep 17 00:00:00 2001 From: Vladimir Kurchatkin Date: Fri, 23 Jan 2015 17:09:42 +0300 Subject: [PATCH] debugger: don't override module binding Overriding module argument with const causes a SyntaxError. This commit changes the variable name to remove the error. PR-URL: https://github.com/iojs/io.js/pull/572 Reviewed-By: Colin Ihrig --- lib/_debugger.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index 0789f356579e7c..0dc9c95c2c8e13 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -4,8 +4,8 @@ const util = require('util'); const path = require('path'); const net = require('net'); const vm = require('vm'); -const module = require('module'); -const repl = module.requireRepl(); +const Module = require('module'); +const repl = Module.requireRepl(); const inherits = util.inherits; const assert = require('assert'); const spawn = require('child_process').spawn; @@ -1110,7 +1110,7 @@ Interface.prototype.list = function(delta) { if (lineno == 1) { // The first line needs to have the module wrapper filtered out of // it. - var wrapper = module.wrapper[0]; + var wrapper = Module.wrapper[0]; lines[i] = lines[i].slice(wrapper.length); client.currentSourceColumn -= wrapper.length;