Skip to content

repl: fix global object in repl

The global object in repl conetxt is copied from main context, which breaks the behavior of instanceof.

This change reverts https://github.com/nodejs/node/pull/25731. cc @BridgeAR

Fixes: https://github.com/nodejs/node/issues/27859 Refs: https://github.com/nodejs/node/pull/25731

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

Merge request reports

Loading