drufball / layered-apis

A new standards effort for collaborating on high-level features.
275 stars 12 forks source link

"determining the layered API fetching URL" is applied twice for dynamic imports #16

Closed hiroshige-g closed 6 years ago

hiroshige-g commented 6 years ago
  1. called from "resolve a module specifier" within the dynamic import algorithm (Step 2.1 of https://html.spec.whatwg.org/multipage/webappapis.html#hostimportmoduledynamically(referencingscriptormodule,-specifier,-promisecapability) ) and
  2. called in "fetch a module script graph".

This doesn't affect meaningful use cases, and observable behavior is probably just allowing import("std:none|std:none|https://example.com/foo.js").

Fixing this (moving the "determine the layered API fetching URL" call to the callers of #fetch-a-module-script-tree) might lead to