Sign in
chromium
/
external
/
w3c
/
web-platform-tests
/
refs/tags/merge_pr_27497
/
.
/
html
/
semantics
/
scripting-1
/
the-script-element
/
json-module
/
serviceworker-dynamic-import.js
blob: 9466c6fbe409a790ee3eab5405b98b86b7842a40 [
file
] [
log
] [
blame
]
onmessage
=
e
=>
{
e
.
waitUntil
(
import
(
"./module.json"
,
{
assert
:
{
type
:
"json"
}
})
.
then
(
module
=>
e
.
source
.
postMessage
(
"LOADED"
))
.
catch
(
error
=>
e
.
source
.
postMessage
(
"FAILED"
)));
};