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

fix(cli): fix handling of non-normalized specifier #9357

Merged

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Feb 1, 2021

This addresses the 2nd case of denoland/deno_emit#43.

This PR keeps the mapping of original specifier and normalized specifier and uses the original specifier for looking up the source code instead of normalized specifier. This change prevents panic when compiling the specifier in non-normalized form.

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

LGTM

A good solution, keeping it contained within the JavaScript side of things!

@kt3k
Copy link
Member Author

kt3k commented Feb 1, 2021

Thank you for your review! Merging.

@kt3k kt3k merged commit 23281be into denoland:master Feb 1, 2021
@kt3k kt3k deleted the fix/non-normalized-specifier-handling-of-compiler branch February 1, 2021 08:05
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.

None yet

2 participants