Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
const_redefining_a_const_strict_mode.js
blob: 3fe25bf1eac4c5d6e8f9c0a8396e74d340a4fb8f [
file
] [
log
] [
blame
]
function
test
()
{
'use strict'
;
const
baz
=
1
;
try
{
Function
(
"'use strict'; const foo = 1; foo = 2;"
)();
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);