Sign in
webkit
/
WebKit
/
2d285391fb1c0e01e12d6e30e4c09b63de2f0be0
/
.
/
JSTests
/
es6
/
const_redefining_a_const_is_an_error.js
blob: 104d2101295179b886f2ff1d9c25e22a198be57b [
file
] [
log
] [
blame
]
function
test
()
{
const
baz
=
1
;
try
{
Function
(
"const foo = 1; foo = 2;"
)();
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);