I read though the spec more, and it looks like static import() on workers is also handled as worker's request context.
Summary:
- Top-level worker script and static import => worker's context
- Dynamic import => script's context
Our implementation correctly works for the case of dynamic import, but not for the case of top-level worker script and static import.
Comment 1 by nhiroki@chromium.org
, May 14 2018