Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / js / xpconnect / tests / mochitest / test_bug618017.html
blob8bfb4288706d6b00b7f3bdb5857220e75b39c0db
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 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'>
16 let x = 12;
17 function doLetEval() {
18 ok(eval('let x = 13; x') === 13, 'let statement is valid syntax in version 1.7');
20 </script>
22 <script type='application/javascript'>
23 doLetEval(); // Call to a function with a different version.
24 </script>
26 </body>
27 </html>