-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Don't check an expression if it was checked cached #22580
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
Conversation
@sandersn the test failure reduces to: // @allowJs: true
// @checkJs: true
// @noEmit: true
// @filename: index.js
var c;
c = class { };
new c(); This error only happens in js. It looks like it's doing a non-cached check two times. I've looked through the callstack and can't find why this is js-specific. |
Binding might be a factor? Something like |
Don't know why that was js-specific, but the problem was that
|
src/harness/harness.ts
Outdated
@@ -73,6 +73,8 @@ interface XMLHttpRequest { | |||
} | |||
/* tslint:enable:no-var-keyword */ | |||
|
|||
ts.Debug.currentAssertionLevel = ts.AssertionLevel.Normal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
I assume this fixes the assertion violation related to the related issues on RWC? (There are other rwc issues right now, but I only think one is related) |
Thanks for your contribution. This PR has not been updated in a while and cannot be automatically merged at the time being. For housekeeping purposes we are closing stale PRs. If you'd still like to continue working on this PR, please leave a message and one of the maintainers can reopen it. |
Fixes #22578
Sequel to #22491 -- checking for
deferredNodes
duplicates catches more than checking fordeferredUnusedIdentifierNodes
duplicates. Without the change tocheckExpression
, the new assertion would fire on several tests where nodes were checked multiple times.