Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 05f40afb16d1dd7c0061f63a970f7a451cfbfadb
      
https://github.com/WebKit/WebKit/commit/05f40afb16d1dd7c0061f63a970f7a451cfbfadb
  Author: Ryosuke Niwa <rn...@webkit.org>
  Date:   2025-08-08 (Fri, 08 Aug 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/repeated-imports.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/repeated-imports.any.worker-expected.txt
    M Source/JavaScriptCore/builtins/ModuleLoader.js
    M Source/JavaScriptCore/runtime/JSModuleLoader.cpp

  Log Message:
  -----------
  Module loader should differentiate importing of a specifier with a distinct 
type
https://bugs.webkit.org/show_bug.cgi?id=297104

Reviewed by Yusuke Suzuki.

This PR makes the module loader differentiate each module import using the 
specifier and the type instead of just the specifier.

To do this, this PR updates ensureRegistered in ModuleLoader.js to take the 
module type in addition to the module specifier / key and
maintains a nested Map for each type per given specifier. 
dependencyKeysIfEvaluated is also updated to look for the js-wasm module.

* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/repeated-imports.any-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/repeated-imports.any.worker-expected.txt:
* Source/JavaScriptCore/builtins/ModuleLoader.js:
(linkTimeConstant.newRegistryEntry):
(visibility.PrivateRecursive.ensureRegistered):
(visibility.PrivateRecursive.async loadModule):
(visibility.PrivateRecursive.linkAndEvaluateModule):
(visibility.PrivateRecursive.async loadAndEvaluateModule):
(visibility.PrivateRecursive.async requestImportModule):
(visibility.PrivateRecursive.dependencyKeysIfEvaluated):
* Source/JavaScriptCore/runtime/JSModuleLoader.cpp:
(JSC::JSModuleLoader::finishCreation):
(JSC::stringFromScriptFetchParametersType):
(JSC::JSC_DEFINE_HOST_FUNCTION):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to