blob: 8bfb4288706d6b00b7f3bdb5857220e75b39c0db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=618017
Parsing XML must not override the version.
-->
<head>
<title>Test for Bug 618017</title>
<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>
|