25 lines
1 KiB
Text
25 lines
1 KiB
Text
=== tests/cases/compiler/objectLitGetterSetter.ts ===
|
|
var obj = {};
|
|
>obj : Symbol(obj, Decl(objectLitGetterSetter.ts, 0, 15))
|
|
|
|
Object.defineProperty(obj, "accProperty", <PropertyDescriptor>({
|
|
>Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.d.ts, 160, 60))
|
|
>Object : Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
|
|
>defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.d.ts, 160, 60))
|
|
>obj : Symbol(obj, Decl(objectLitGetterSetter.ts, 0, 15))
|
|
>PropertyDescriptor : Symbol(PropertyDescriptor, Decl(lib.d.ts, 79, 66))
|
|
|
|
get: function () {
|
|
>get : Symbol(get, Decl(objectLitGetterSetter.ts, 1, 76))
|
|
|
|
eval("public = 1;");
|
|
>eval : Symbol(eval, Decl(lib.d.ts, 22, 29))
|
|
|
|
return 11;
|
|
},
|
|
set: function (v) {
|
|
>set : Symbol(set, Decl(objectLitGetterSetter.ts, 5, 18))
|
|
>v : Symbol(v, Decl(objectLitGetterSetter.ts, 6, 31))
|
|
}
|
|
}))
|
|
|