Skip to content

Establish a proper prototype chain #4197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
silkentrance opened this issue Feb 2, 2016 · 1 comment
Closed

Establish a proper prototype chain #4197

silkentrance opened this issue Feb 2, 2016 · 1 comment
Labels

Comments

@silkentrance
Copy link

Given the following input source

class A

class B extends A


console.log A.isPrototypeOf B

yields false

whereas the same using babel

class A {}

class B extends A {}

console.log(A.isPrototypeOf(B));

yields true.

See also node prototype chain is broken.

@GeoffreyBooth
Copy link
Collaborator

Returns true in 2.0.0-beta1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants