Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE html>
<html>
<!--
Parsing XML must not override the version.
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<script type='application/javascript'>
let x = 12;
function doLetEval() {
ok(eval('let x = 13; x') === 13, 'let statement is valid syntax in version 1.7');
}
</script>
<script type='application/javascript'>
doLetEval(); // Call to a function with a different version.
</script>
</body>
</html>