[JSC] Specifying same module entry point multiple times cause TypeError
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2016 03:56:12 +0000 (03:56 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2016 03:56:12 +0000 (03:56 +0000)
commitc5e1f30ddb370080b50b542e030c1bf794a32a29
tree4ae0ebc3d2373bfb42b95d3bc0bcadaf227566c2
parent20154e25038b87196fcd1a064dfa298c138cd425
[JSC] Specifying same module entry point multiple times cause TypeError
https://bugs.webkit.org/show_bug.cgi?id=164858

Reviewed by Saam Barati.

Source/JavaScriptCore:

Allow importing the same module multiple times. Previously, when specifying the same
module in the <script type="module" src="here">, it throws TypeError.

* builtins/ModuleLoaderPrototype.js:
(requestFetch):
(requestTranslate):
(requestInstantiate):
(requestSatisfy):

LayoutTests:

* js/dom/modules/module-load-same-module-from-different-entry-point-in-src-expected.txt: Added.
* js/dom/modules/module-load-same-module-from-different-entry-point-in-src.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/js/dom/modules/module-load-same-module-from-different-entry-point-in-src-expected.txt [new file with mode: 0644]
LayoutTests/js/dom/modules/module-load-same-module-from-different-entry-point-in-src.html [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/builtins/ModuleLoaderPrototype.js