Skip to content

Can't easily initialise classes in Web Investigator REPL #44

@James-Livesey

Description

@James-Livesey

Currently this happens:

class X {}
// <- undefined
new X();
// ReferenceError: X is not defined

Right now, you instead have to do this:

var X = class {};

We need to allow classes to be instantiated using the non-assignment syntax like we have allowed for functions. We also need to ensure that this works when extending classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions