Skip to content

REPL: {} instanceof Object === false with nodejs 11 and nodejs 12  #27859

Closed
@iam4x

Description

@iam4x

With the given file:

console.js

const repl = require('repl');
repl.start('> ');

Then running in nodejs 11 & 12:

$ node console.js

> console.log({} instanceof Object)
false

But running with nodejs 10:

$ node console.js

> console.log({} instanceof Object)
true

I am expecting to be true in all cases, did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions