Lines Matching refs:object
12 var object = { variable in TestMethodComputedNameString
18 assertEquals('A', object.a());
19 assertEquals('B', object.b());
20 assertEquals('C', object.c());
21 assertEquals('D', object.d());
22 assertArrayEquals(['a', 'b', 'c', 'd'], Object.keys(object));
27 var object = { variable in TestMethodComputedNameNumber
33 assertEquals('A', object.a());
34 assertEquals('B', object[1]());
35 assertEquals('C', object.c());
36 assertEquals('D', object[2]());
38 assertArrayEquals(['1', '2', 'a', 'c'], Object.keys(object));
45 var object = { variable in TestMethodComputedNameSymbol
51 assertEquals('A', object.a());
52 assertEquals('B', object[sym1]());
53 assertEquals('C', object.c());
54 assertEquals('D', object[sym2]());
55 assertArrayEquals(['a', 'c'], Object.keys(object));
56 assertArrayEquals([sym1, sym2], Object.getOwnPropertySymbols(object));
66 var object = { variable in TestGeneratorComputedName
72 var iter = object.a();
76 assertArrayEquals(['a'], Object.keys(object));
94 var object = { variable in TestToNameSideEffects
101 assertEquals('A', object.a());
102 assertEquals('B', object.b());
103 assertEquals('C', object.c());
104 assertEquals('D', object.d());
105 assertArrayEquals(['a', 'b', 'c', 'd'], Object.keys(object));
114 var object = { variable in TestDuplicateKeys
118 assertEquals(2, object.a());