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.1.4
Code
class TestError extends Error { } const works = (new TestError()) instanceof TestError; console.log(works);
Expected behavior: (and behavior in Node.js 6.2.1)
works is true
true
Actual behavior:
works is false
false
The text was updated successfully, but these errors were encountered:
Sorry about this - it was an intentional breaking change and documented here. Sorry about the inconveniences you may have encountered.
Marking this issue as a duplicate of #12123.
Sorry, something went wrong.
That's what I get for not reading the release notes! Thanks for the link.
No branches or pull requests
TypeScript Version: 2.1.4
Code
Expected behavior: (and behavior in Node.js 6.2.1)
works is
true
Actual behavior:
works is
false
The text was updated successfully, but these errors were encountered: