blob: 4271f1152f41153855534ee0dc877615212d3ba1 [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.
//-------------------------------------------------------------------------------------------------------
var a=true;
// eval used as a function name in strict mode
try {
eval('(function(){if(a) { function foo3() {"use strict"; function eval(a) {} }; foo3();}})();');
}
catch(e) {
WScript.Echo(e.message);
}
try {
eval('(function(){if(a) { function foo3() { function eval(a) {"use strict";} }; foo3();}})();');
}
catch(e) {
WScript.Echo(e.message);
}