Skip to content
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

Throws an exception on Node.js v.10.15.0 #4

Closed
yehorbk opened this issue Jan 5, 2020 · 1 comment
Closed

Throws an exception on Node.js v.10.15.0 #4

yehorbk opened this issue Jan 5, 2020 · 1 comment

Comments

@yehorbk
Copy link
Member

yehorbk commented Jan 5, 2020

This line cause "TypeError: clazz is not a constructor" exception:

console.dir({ res });

I'm not sure, but I think that is because toString is a property with getter (when we want to call it we use obj.toString instead of obj.toString()). Consequently there is not overrided toString method in ProtoClass.

image

But it works fine on Node.js v12.14.0.

@tshemsedinov
Copy link
Member

Somebody already reported and fixed this. See: nodejs/node#25451

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

No branches or pull requests

2 participants