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.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines