X Tutup
Skip to content

Exception: Cannot read property 'kind' of undefined when using function.apply #1226

@Perryvw

Description

@Perryvw

Something in this code is causing an exception:

class Test {
    value = 4;

    Do() {
        print(this.value);
    }

    constructor() {
        this.Do.apply(this);
    }
}

const inst = new Test();

Playground link

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup