blob: 86cba1f5ab356a1ec39e21db09c6e3a8cd915ac9 [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+''); }
Object.defineProperty(this, 'x', { configurable: true, get: function () { return undefined; } });
let x = 'let x';
Object.defineProperty(this, 'x', { value: 10 });
var desc = Object.getOwnPropertyDescriptor(this, 'x');
print(x);
for (var p in desc)
{
print(p + ": " + desc[p]);
}