blob: 4a183f9a92553730f016444011df0c866b2b539b [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 print(x) { WScript.Echo(x+''); }
eval('function test2() { x = 10; }');
try { test2(); } catch (e) { print(e); }
Object.defineProperty(this, 'accessor', { configurable: true, get: function () { return false; } });
try { test2(); } catch (e) { print(e); }
let x;