Skip to content

Assertion error starting from v14.0.0 #33334

@ghost

Description

Our code:

const assert = require('assert');

module.exports = new Proxy({}, {
  getPrototypeOf(){
    assert.fail();
  }
});

We want to export a proxified object and explicitly ensure that user code will not trigger certain traps. Works fine in v12.x. Throws assertion error in v14.x, but we did not call getPrototypeOf.

We bisected to d7452b7. Throws error even with --no-warnings.

Please Node.js team, can you fix this? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions