Skip to content

Commit b45abfd

Browse files
committed
repl: fix permanent deoptimizations
PR-URL: #12456 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 4484e8f commit b45abfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/repl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,10 @@ REPLServer.prototype.createContext = function() {
601601
}
602602
}
603603

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

607-
const require = internalModule.makeRequireFunction(module);
607+
var require = internalModule.makeRequireFunction(module);
608608
context.module = module;
609609
context.require = require;
610610

0 commit comments

Comments
 (0)