Skip to content

Commit

Permalink
debugger: don't override module binding
Browse files Browse the repository at this point in the history
Overriding module argument with const causes a SyntaxError. This
commit changes the variable name to remove the error.

PR-URL: #572
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
vkurchatkin authored and cjihrig committed Jan 23, 2015
1 parent 40ffed8 commit f4c536b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f4c536b

Please sign in to comment.