lib: the REPL should survive deletion of Array.prototype methods · nodejs/node@c96e5cb · GitHub
Skip to content

Commit c96e5cb

Browse files
ljharbmarco-ippolito
authored andcommitted
lib: the REPL should survive deletion of Array.prototype methods
Specifically, `delete Array.prototype.lastIndexOf` immediately crashes the REPL, as does deletion of a few other Array prototype methods. PR-URL: #31457 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 20501a7 commit c96e5cb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/domain.js

Lines changed: 2 additions & 1 deletion

lib/repl.js

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)