Skip to content

Commit a2144b9

Browse files
committed
[worklets] Remove no url check for worklet.import
1 parent 5ebd920 commit a2144b9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

worklets/Overview.bs

+6-8
Original file line numberDiff line numberDiff line change
@@ -266,22 +266,20 @@ the user agent <em>must</em> run the following steps:
266266
1. Let |promise| be <a>a new promise</a>.
267267

268268
2. Run the following steps <a>in parallel</a>:
269-
1. If there are no arguments, return without doing anything. Abort these steps.
270-
271-
2. Let |resolvedModuleURL| be the result of <a>resolving</a> the |moduleURL| relative to the
269+
1. Let |resolvedModuleURL| be the result of <a>resolving</a> the |moduleURL| relative to the
272270
<a>API base URL</a> specified by the <a>entry settings object</a> when the method was
273271
invoked.
274272

275-
3. If this fails, reject |promise| with a <a>SyntaxError</a> exception and abort these
273+
2. If this fails, reject |promise| with a <a>SyntaxError</a> exception and abort these
276274
steps.
277275

278-
4. Add |resolvedModuleURL| to the list of <a>worklet's resolved module URLs</a>.
276+
3. Add |resolvedModuleURL| to the list of <a>worklet's resolved module URLs</a>.
279277

280-
5. Ensure that there is at least one {{WorkletGlobalScope}} in the <a>worklet's
278+
4. Ensure that there is at least one {{WorkletGlobalScope}} in the <a>worklet's
281279
WorkletGlobalScopes</a>. If not <a>create a WorkletGlobalScope</a> given the current
282280
{{Worklet}}.
283281

284-
6. For each {{WorkletGlobalScope}} in the <a>worklet's WorkletGlobalScopes</a>, run these
282+
5. For each {{WorkletGlobalScope}} in the <a>worklet's WorkletGlobalScopes</a>, run these
285283
substeps:
286284
1. Let |settings| be the {{WorkletGlobalScope}}'s associated <a>environment settings
287285
object</a>.
@@ -295,7 +293,7 @@ the user agent <em>must</em> run the following steps:
295293

296294
3. <a>Run a module script</a> given |script|.
297295

298-
7. If <em>all</em> the steps above succeeded (in particular, if all of the scripts parsed
296+
6. If <em>all</em> the steps above succeeded (in particular, if all of the scripts parsed
299297
and loaded into the global scopes), resolve |promise|.
300298
<br>Otherwise, reject |promise|.
301299

0 commit comments

Comments
 (0)