blob: 463344aefcd67e84f7cd728e9c8c8286f7f96100 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function write(a) {
if (this.WScript == undefined) {
document.write(a);
document.write("</br>");
}
else
WScript.Echo(a)
}
try
{
// this should not compile in ES5
eval("if(true){};else{}");
}
catch(e)
{
write("'if(true){};else{}' compile failure in ES5" + e)
}