Skip to content

TypeError: Cannot modify readonly property: constructor #238

Description

@RuralHunter

Test case:

            "use strict";
            var e = Promise.resolve(1);
            e.constructor = {};
            console.log('done');

In real browser, the script runs fine with both strict and non-strict mode. In htmlunit, the script runs with non-strict mode but fails with strict mode.

No activity

Activity on this issue will appear here.

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