Skip to content

Commit 8df425e

Browse files
author
Daniel Ehrenberg
authored
Merge pull request #11 from ljharb/when-possible
spec: add "when possible" to recommendation
2 parents afb391f + fb0e471 commit 8df425e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1>Runtime Semantics: HostResolveImportedModule ( _referencingScriptOrModule_,
4747
Each time this operation is called with a specific _referencingScriptOrModule_, _moduleRequest_.[[Specifier]], _moduleRequest_.[[Assertions]] triple as arguments it must return the same Module Record instance if it completes normally.
4848
<ul>
4949
<li>
50-
It is recommended but not required that implementations additionally conform to the following stronger constraint: each time this operation is called with a specific _referencingScriptOrModule_, _moduleRequest_.[[Specifier]] pair as arguments it must return the same Module Record instance if it completes normally.
50+
It is recommended but not required that when possible, implementations additionally conform to the following stronger constraint: each time this operation is called with a specific _referencingScriptOrModule_, _moduleRequest_.[[Specifier]] pair as arguments it must return the same Module Record instance if it completes normally.
5151
</li>
5252
</ul>
5353
</li>
@@ -76,7 +76,7 @@ <h1>Runtime Semantics: HostResolveImportedModule ( _referencingScriptOrModule_,
7676
<p>It's possible that one of these three options may make sense for a module load, on a case-by-case basis by attribute, but it's worth careful thought before making this choice.</p>
7777
</emu-note>
7878

79-
79+
8080
<emu-note type=editor>
8181
<p><ins>The above text implies that hosts *must* support JSON modules imported with `type: "json"` (if it completes normally), but it doesn't prohibit hosts from supporting JSON modules imported with no type specified. Some environments (for example, web browsers) are expected to require `assert { type: "json" }`, and environments which want to restrict themselves to a compatible subset would do so as well.</ins></p>
8282
</emu-note>

0 commit comments

Comments
 (0)