Skip to content

inspect: fix pop undefined when array prototype pop deleted

If one explicitly deletes the array prototype in the repl instance then the method to check for pop seen in the context starts giving error. Reason being primordials is not used and userland has modified the prototype.

Fixed by using array pop method primordial.

image

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading