Sign in
chromium
/
external
/
github.com
/
web-platform-tests
/
wpt
/
refs/heads/settimeout-active-script
/
.
/
encrypted-media
/
util
/
utf8.js
blob: aea5ad7626d99b2c8b9b64881f7f3131cbcb183a [
file
] [
edit
]
toUtf8
=
function
(
o
)
{
return
new
TextEncoder
().
encode
(
JSON
.
stringify
(
o
)
);
}
fromUtf8
=
function
(
t
)
{
return
JSON
.
parse
(
new
TextDecoder
().
decode
(
t
)
);
}