Sign in
webkit
/
WebKit
/
c6951ff6f7d972427c05df8e7c39e3f2d74bf29c
/
.
/
JSTests
/
es6
/
non-strict_function_semantics_labeled_function_statements.js
blob: e132ef668b017fddda8eb0f2ee37262624936ad2 [
file
] [
log
] [
blame
]
function
test
()
{
// Note: only available outside of strict mode.
if
(!
this
)
return
false
;
label
:
function
foo
()
{
return
2
;
}
return
foo
()
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);