-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
refactor: Rename imported symbols #179
refactor: Rename imported symbols #179
Conversation
lib/constructs/interface.js
Outdated
this.requires.addRaw("impl", "utils.implSymbol"); | ||
this.requires.addRaw("ctorRegistry", "utils.ctorRegistrySymbol"); | ||
this.requires.addRaw(`{ implSymbol, ctorRegistrySymbol }`, "utils"); |
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’ve changed this to use object destructuring to match how alias imports are done in JSDOM.
1029610
to
839fa5e
Compare
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.
Looks good otherwise.
This benefits from the identifier clash checking that's in addRaw.
e3ace27
to
96794fa
Compare
Rebased and fixed some issues that came up in rebasing (96794fa). |
I had originally fixed that as part of 42e8cd5. |
It’s possible that rebasing destroyed the merge. For future could you please rebase rather than merge |
I’ve waited with opening this until after #166 was done to avoid merge conflicts.
This frees up the
impl
variable for use in #158 and also makes it clearer that the currentimpl
variable refers toimplSymbol
.