blob: e416ec48b22b3fd9635461dc35e679419bccebfc [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<title>Const test</title>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="bodyId">
<script>
description("This test checks that const variables can shadow global object's named properties.");
</script>
<script>
const bodyId = 3;
</script>
<script>
shouldBe("bodyId", "3");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>