77 lines
1.9 KiB
Plaintext
77 lines
1.9 KiB
Plaintext
=== tests/cases/conformance/salsa/a.js ===
|
|
|
|
var variable = {};
|
|
>variable : Symbol(variable, Decl(a.js, 1, 3))
|
|
|
|
variable.a = 0;
|
|
>variable : Symbol(variable, Decl(a.js, 1, 3))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(a.js, 2, 15))
|
|
|
|
initializedMember = {};
|
|
>initializedMember : Symbol(C.initializedMember, Decl(a.js, 4, 9))
|
|
|
|
constructor() {
|
|
this.member = {};
|
|
>this.member : Symbol(C.member, Decl(a.js, 6, 19))
|
|
>this : Symbol(C, Decl(a.js, 2, 15))
|
|
>member : Symbol(C.member, Decl(a.js, 6, 19))
|
|
|
|
this.member.a = 0;
|
|
>this.member : Symbol(C.member, Decl(a.js, 6, 19))
|
|
>this : Symbol(C, Decl(a.js, 2, 15))
|
|
>member : Symbol(C.member, Decl(a.js, 6, 19))
|
|
}
|
|
}
|
|
|
|
var obj = {
|
|
>obj : Symbol(obj, Decl(a.js, 12, 3))
|
|
|
|
property: {}
|
|
>property : Symbol(property, Decl(a.js, 12, 11))
|
|
|
|
};
|
|
|
|
obj.property.a = 0;
|
|
>obj.property : Symbol(property, Decl(a.js, 12, 11))
|
|
>obj : Symbol(obj, Decl(a.js, 12, 3))
|
|
>property : Symbol(property, Decl(a.js, 12, 11))
|
|
|
|
var arr = [{}];
|
|
>arr : Symbol(arr, Decl(a.js, 18, 3))
|
|
|
|
function getObj() {
|
|
>getObj : Symbol(getObj, Decl(a.js, 18, 15))
|
|
|
|
return {};
|
|
}
|
|
|
|
|
|
=== tests/cases/conformance/salsa/b.ts ===
|
|
variable.a = 1;
|
|
>variable : Symbol(variable, Decl(a.js, 1, 3))
|
|
|
|
(new C()).member.a = 1;
|
|
>(new C()).member : Symbol(C.member, Decl(a.js, 6, 19))
|
|
>C : Symbol(C, Decl(a.js, 2, 15))
|
|
>member : Symbol(C.member, Decl(a.js, 6, 19))
|
|
|
|
(new C()).initializedMember.a = 1;
|
|
>(new C()).initializedMember : Symbol(C.initializedMember, Decl(a.js, 4, 9))
|
|
>C : Symbol(C, Decl(a.js, 2, 15))
|
|
>initializedMember : Symbol(C.initializedMember, Decl(a.js, 4, 9))
|
|
|
|
obj.property.a = 1;
|
|
>obj.property : Symbol(property, Decl(a.js, 12, 11))
|
|
>obj : Symbol(obj, Decl(a.js, 12, 3))
|
|
>property : Symbol(property, Decl(a.js, 12, 11))
|
|
|
|
arr[0].a = 1;
|
|
>arr : Symbol(arr, Decl(a.js, 18, 3))
|
|
|
|
getObj().a = 1;
|
|
>getObj : Symbol(getObj, Decl(a.js, 18, 15))
|
|
|
|
|