mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
84a1d83d0a
--HG-- extra : rebase_source : a88f8ed13299c566df2297729b3a5ddf21fcaafa
29 lines
676 B
HTML
29 lines
676 B
HTML
<!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>
|
|
|
|
<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>
|
|
|
|
<script type='application/javascript;version=1.5'>
|
|
doLetEval(); // Call to a function with a different version.
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|