2011-02-11 17:44:55 -08:00
|
|
|
<!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 type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
2012-07-20 12:00:53 -07:00
|
|
|
|
2011-02-11 17:44:55 -08:00
|
|
|
<script type='application/javascript;version=1.7'>
|
|
|
|
let x = 12;
|
|
|
|
function doLetEval() {
|
|
|
|
ok(eval('let x = 13; x') === 13, 'let statement is valid syntax in version 1.7');
|
|
|
|
}
|
|
|
|
</script>
|
2012-07-20 12:00:53 -07:00
|
|
|
|
2011-02-11 17:44:55 -08:00
|
|
|
<script type='application/javascript;version=1.5'>
|
|
|
|
doLetEval(); // Call to a function with a different version.
|
|
|
|
</script>
|
2012-07-20 12:00:53 -07:00
|
|
|
|
2011-02-11 17:44:55 -08:00
|
|
|
</body>
|
|
|
|
</html>
|
2013-01-28 14:55:17 -08:00
|
|
|
|