Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/repl.js
  • Loading branch information
bmeck authored Jul 15, 2020
commit f24f521a2a0da5e7a2078be3a685038beed036b6
2 changes: 2 additions & 0 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ const {

const history = require('internal/repl/history');
let nextREPLResourceNumber = 1;
// this prevents v8 code cache from getting confused and using a different
Comment thread
bmeck marked this conversation as resolved.
Resolved
// cache from a resource of the same name
function getREPLResourceName() {
Comment thread
bmeck marked this conversation as resolved.
Resolved
return `REPL${nextREPLResourceNumber++}`;
}
Expand Down