Repository navigation
Don't check an expression if it was checked cached - #22580
Deleted user (ghost) wants to merge 3 commits into
Conversation
|
Nathan Shively-Sanders (@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
|
| } | ||
| /* tslint:enable:no-var-keyword */ | ||
|
|
||
| ts.Debug.currentAssertionLevel = ts.AssertionLevel.Normal; |
|
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
deferredNodesduplicates catches more than checking fordeferredUnusedIdentifierNodesduplicates. Without the change tocheckExpression, the new assertion would fire on several tests where nodes were checked multiple times.