blob: cfc06e713e13fac6b56503e3358cf72784a15afe [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.
//-------------------------------------------------------------------------------------------------------
/*Path Type Handler*/
var obj = {A:1, B:2} // PTH
function test0()
{
return obj.A;
}
WScript.Echo(test0());
WScript.Echo(test0());
obj.A = 99;
WScript.Echo(test0());
/*Simple Dictionary Type Handler*/
var obj = {A:1} // PTH
Object.defineProperty(obj, "B", {
enumerable : true,
configurable : false,
writable : false,
value : 20
}); //SDTH
function test1()
{
return obj.B;
}
WScript.Echo(test1());
WScript.Echo(test1());
obj.B = 99;
WScript.Echo(test1());