Skip to content

Assertion error starting from v14.0.0 #33334

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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