Skip to content

not a constructor #368

@Stubbsware

Description

@Stubbsware

Speaks for itself, if calling new when its not a constructor, the error being reported is just
TypeError: not a constructor

For example
var Foo = () => {};
var foo = new Foo(); // TypeError: Foo is not a constructor

However, QuickJS just reports
TypeError: not a constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions