Add import-meta-resolve.any.html and import-meta-object.any.html wpt tests
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
Details
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve.any.js
and
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-object.any.js
are JS test files that could be used to test with different global objects in wpt.
Currently the tests has been specified to run with worker modules, but not on window.
https://searchfox.org/mozilla-central/rev/db4b1d66c4b409bdbce43f3f3498401f5303d961/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-resolve.any.js#1
https://searchfox.org/mozilla-central/rev/db4b1d66c4b409bdbce43f3f3498401f5303d961/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/import-meta/import-meta-object.any.js#1
However, if I try to specify it with window by "META: global=window", it will throw SyntaxError because it has been treated as a classic script and hence cannot use static import.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•