Skip to content

prototype of classes are wrong #259

@samualtnorman

Description

@samualtnorman

it turns out a quirk of converting

class Foo {}

to

class Foo extends Object {}

is that Object.getPrototypeOf(Foo) == Object when it should be Object.getPrototypeOf(Foo) == Function.prototype.

this is easily fixable but I'm probably not going to since I don't maintain this repository any more. you'll probably want to fix this if you're forking this repo though

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