blob: d4448af9fd1ae90d15e7b4e8e495cfd11cb03b51 [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.
//-------------------------------------------------------------------------------------------------------
// bug around fixed accessor properties
obj = {};
Object.defineProperty(obj, 'prop0', {
value:
{
get x() {
try{this;}
catch(e){};
function bar(arg){
WScript.Echo("getter");
this.prop1 = 1;
}
return bar;
}
},
configurable: true
});
function foo()
{
new obj.prop0.x(this);
}
foo();
foo();
foo();