[webkit-changes] [WebKit/WebKit] 78c6d6: Implement import.meta.resolve()

Yusuke Suzuki noreply at github.com
Tue Sep 20 13:57:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 78c6d6d7b596a5953915f8066a5e75d19eda8411
      https://github.com/WebKit/WebKit/commit/78c6d6d7b596a5953915f8066a5e75d19eda8411
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve-importmap-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve-multiple-scripts-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve.any.serviceworker-module-expected.txt
    M Source/WebCore/bindings/js/ScriptModuleLoader.cpp

  Log Message:
  -----------
  Implement import.meta.resolve()
https://bugs.webkit.org/show_bug.cgi?id=242163
rdar://96569044

Reviewed by Alexey Shvayka.

This patch implements import.meta.resolve[1], which exposes module specifier resolving feature through import.meta object.

[1]: https://whatpr.org/html/5572/webappapis.html#hostgetimportmetaproperties

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve-importmap-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve-multiple-scripts-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve.any.serviceworker-module-expected.txt:
* Source/WebCore/bindings/js/ScriptModuleLoader.cpp:
(WebCore::ScriptModuleLoader::createImportMetaProperties):

Canonical link: https://commits.webkit.org/254691@main




More information about the webkit-changes mailing list