Skip to content

Commit f4c536b

Browse files
vkurchatkincjihrig
authored andcommitted
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: #572 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 40ffed8 commit f4c536b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/_debugger.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const util = require('util');
44
const path = require('path');
55
const net = require('net');
66
const vm = require('vm');
7-
const module = require('module');
8-
const repl = module.requireRepl();
7+
const Module = require('module');
8+
const repl = Module.requireRepl();
99
const inherits = util.inherits;
1010
const assert = require('assert');
1111
const spawn = require('child_process').spawn;
@@ -1110,7 +1110,7 @@ Interface.prototype.list = function(delta) {
11101110
if (lineno == 1) {
11111111
// The first line needs to have the module wrapper filtered out of
11121112
// it.
1113-
var wrapper = module.wrapper[0];
1113+
var wrapper = Module.wrapper[0];
11141114
lines[i] = lines[i].slice(wrapper.length);
11151115

11161116
client.currentSourceColumn -= wrapper.length;

0 commit comments

Comments
 (0)