We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 2.12.0
Code
class A{ private n :number= 1; public x :number =2; protected y: number =3; } class B extends A{ private m :number = 2; } var obj = new B(); console.log(Object.getOwnPropertyNames(obj));
Expected behavior: this should only give ['m']
Actual behavior: this when running with nodejs compiled with commonjs module gives [ 'n', 'x', 'y', 'm' ]
[ 'n', 'x', 'y', 'm' ]
The text was updated successfully, but these errors were encountered:
See this comment #10425 (comment) and the question above it.
Sorry, something went wrong.
should be addressed by #12488
This is the expected behavior
No branches or pull requests
TypeScript Version: 2.12.0
Code
Expected behavior:
this should only give ['m']
Actual behavior:
this when running with nodejs compiled with commonjs module gives
[ 'n', 'x', 'y', 'm' ]
The text was updated successfully, but these errors were encountered: