Skip to content
Merged
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
use primordials instead
  • Loading branch information
rayw000 committed Jan 23, 2022
commit a6bf5b8646d4489c3ab2a02e6bb83cfeb9aafebb
4 changes: 2 additions & 2 deletions lib/internal/readline/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ class Interface extends InterfaceConstructor {
{ text: this.line, cursor: this.cursor },
);

const entry = this[kUndoStack].pop();
const entry = ArrayPrototypePop(this[kUndoStack]);
this.line = entry.text;
this.cursor = entry.cursor;

Expand All @@ -909,7 +909,7 @@ class Interface extends InterfaceConstructor {
{ text: this.line, cursor: this.cursor },
);

const entry = this[kRedoStack].pop();
const entry = ArrayPrototypePop(this[kRedoStack]);
this.line = entry.text;
this.cursor = entry.cursor;

Expand Down