Skip to content
Prev Previous commit
Next Next commit
bug fixes
  • Loading branch information
TimothyGu committed Jul 17, 2017
commit a8ebfb57b4fd8cb1d0d8ace17d825f97ca1156ae
3 changes: 2 additions & 1 deletion lib/inspector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const errors = require('internal/errors');
const EventEmitter = require('events');
const util = require('util');
const { isContext } = process.binding('contextify');
Expand Down Expand Up @@ -105,7 +106,7 @@ function checkSandbox(sandbox) {

let ctxIdx = 1;
function attachContext(sandbox, {
name = `vm Module Context ${ctxIdx}`,
name = `vm Module Context ${ctxIdx++}`,
origin
} = {}) {
checkSandbox(sandbox);
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');
E('ERR_NO_CRYPTO', 'Node.js is not compiled with OpenSSL crypto support');
E('ERR_PARSE_HISTORY_DATA', 'Could not parse history data in %s');
E('ERR_SANDBOX_NOT_CONTEXTIFIED',
'Provided sandbox must have been converted to a context')
'Provided sandbox must have been converted to a context');
E('ERR_SOCKET_ALREADY_BOUND', 'Socket is already bound');
E('ERR_SOCKET_BAD_TYPE',
'Bad socket type specified. Valid types are: udp4, udp6');
Expand Down