Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE html>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=618017
6 Parsing XML must not override the version.
7 -->
8 <head>
9 <title>Test for Bug 618017</title>
10 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
12 </head>
13 <body>
15 <script type='application/javascript;version=1.7'>
16 let x = 12;
17 function doLetEval() {
18 ok(eval('let x = 13; x') === 13, 'let statement is valid syntax in version 1.7');
19 }
20 </script>
22 <script type='application/javascript;version=1.5'>
23 doLetEval(); // Call to a function with a different version.
24 </script>
26 </body>
27 </html>