Sign in
chromium
/
external
/
w3c
/
web-platform-tests
/
refs/tags/merge_pr_7920
/
.
/
content-security-policy
/
script-src
/
support
/
worker-function-function.js
blob: 03d9bf4cbbcad9baacf75d343457f0954125d84e [
file
] [
log
] [
blame
]
var
fn
=
function
()
{
postMessage
(
'Function() function blocked'
);
}
try
{
fn
=
new
Function
(
""
,
"postMessage('Function() function allowed');"
);
}
catch
(
e
)
{}
fn
();