Skip to content

canReflect.new should work with native classes #162

@matthewp

Description

@matthewp

Currently if you do:

class Animal { }

canReflect.new(Animal, []);

It will throw with something like:

TypeError: Class constructor Animal cannot be invoked without 'new'

We should use Reflect.construct where available.

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