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

moduleNameResolver: fix invalid assertion and avoid unnecessary work #26319

Merged
2 commits merged into from
Aug 10, 2018

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Aug 9, 2018

Part of #18217

/r=@sheetalkamat, @andy-ms

@@ -362,9 +362,6 @@ namespace ts {
}

function getOrCreateCacheForModuleName(nonRelativeModuleName: string): PerModuleNameCache {
if (isExternalModuleNameRelative(nonRelativeModuleName)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of removing I suggest you put the assert here so that we can catch incorrect use of the cache in future.

@ghost ghost merged commit ad4403e into microsoft:master Aug 10, 2018
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants