| 123456789101112131415161718192021222324252627282930313233 |
- //-------------------------------------------------------------------------------------------------------
- // 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();
|