Skip to content

Commit

Permalink
repl: fix permanent deoptimizations
Browse files Browse the repository at this point in the history
PR-URL: #12456
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex committed Apr 30, 2017
1 parent 4484e8f commit b45abfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,10 @@ REPLServer.prototype.createContext = function() {
}
}

const module = new Module('<repl>');
var module = new Module('<repl>');
module.paths = Module._resolveLookupPaths('<repl>', parentModule, true) || [];

const require = internalModule.makeRequireFunction(module);
var require = internalModule.makeRequireFunction(module);
context.module = module;
context.require = require;

Expand Down

0 comments on commit b45abfd

Please sign in to comment.