test_bug618017.html (622B)
1 <!DOCTYPE html> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=618017 5 6 Parsing XML must not override the version. 7 --> 8 <head> 9 <title>Test for Bug 618017</title> 10 <script src="/tests/SimpleTest/SimpleTest.js"></script> 11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 12 </head> 13 <body> 14 15 <script type='application/javascript'> 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> 21 22 <script type='application/javascript'> 23 doLetEval(); // Call to a function with a different version. 24 </script> 25 26 </body> 27 </html>