Browse Source

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 <cjihrig@gmail.com>
v1.8.0-commit
Vladimir Kurchatkin 10 years ago
committed by cjihrig
parent
commit
f4c536b749
  1. 6
      lib/_debugger.js

6
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;

Loading…
Cancel
Save