Sign in
cobalt
/
cobalt
/
refs/heads/21.lts.stable
/
.
/
src
/
third_party
/
web_platform_tests
/
content-security-policy
/
blink-contrib
/
resources
/
worker-function-function.js
blob: 03d9bf4cbbcad9baacf75d343457f0954125d84e [
file
] [
log
] [
blame
] [
edit
]
var
fn
=
function
()
{
postMessage
(
'Function() function blocked'
);
}
try
{
fn
=
new
Function
(
""
,
"postMessage('Function() function allowed');"
);
}
catch
(
e
)
{}
fn
();