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

Fixes for jridgewell's review #139

Merged
merged 4 commits into from
Apr 4, 2023

Conversation

nicolo-ribaudo
Copy link
Member

<ul>
<li><ins>the first _referrer_ is the same as the second _referrer_;</ins></li>
<li><ins>the first _moduleRequest_.[[Specifier]] is the same as the second _moduleRequest_.[[Specifier]];</ins></li>
<li><ins>AttributesEqual(the first _moduleRequest_.[[Attributes]], the second _moduleRequest_.[[Attributes]]) is *true*;</ins></li>
Copy link
Member Author

Choose a reason for hiding this comment

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

There are other places where I used "the same", but this is the only one with normative effects. I prefer to keep "the same" in descriptions and notes, to more easily communicate the underlying meaning.

@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Apr 3, 2023
3 tasks
@nicolo-ribaudo nicolo-ribaudo added this to the stage 3 milestone Apr 3, 2023
spec.emu Outdated
@@ -279,16 +280,16 @@
</emu-grammar>
<emu-alg>
1. <del>Return ModuleRequests of |FromClause|.</del>
1. <ins>Let _specifier_ be SV of the |ModuleSpecifier| contained in |FromClause|.</ins>
1. <ins>Return a ModuleRequest Record { [[Specifer]]: _specifier_, [[Attributes]]: « » }.</ins>
1. <ins>Let _specifier_ be SV of |ModuleSpecifier|.</ins>
Copy link
Member

Choose a reason for hiding this comment

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

There doesn't seem to be a ModuleSpecifier here, did you mean FromClause? Specifically, I think we need FromClause: from ModuleSpecifier and ModuleSpecifier: StringLiteral cases in this ModuleRequests algorithm

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I meant FromClause.

The problem with ModuleRequests for FromClause and ModuleSpeicfier is that ModuleRequests returns a (specifier, attributes) pair, and for FromClause/ModuleSpecifier you cannot return both. SV of FromClause should work here, since SDOs are automatically recursively defined (thus SV of FromClause if the SV of ModuleSpecifier, which is the SV of StringLiteral).

@nicolo-ribaudo nicolo-ribaudo merged commit 78446d3 into tc39:master Apr 4, 2023
@nicolo-ribaudo nicolo-ribaudo deleted the jridgewell-review branch May 4, 2023 09:44
@Saeedazimi69
Copy link

2b0a98e

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.

3 participants