Searched refs:proxy1 (Results 1 – 6 of 6) sorted by relevance
/arkcompiler/ets_runtime/test/moduletest/container/ |
D | container_plainarray.js | 102 let proxy1 = new Proxy(arr2, {}); variable 103 proxy1.add(0, "0") 104 proxy1.add(1, "1") 105 proxy1.add(2, "2") 106 proxy1.add(3, "3") 107 proxy1.add(4, "4") 108 proxy1.add(5, "5") 109 proxy1.setValueAt(2, "123") 110 map.set("test plainarray setValueAt and get:", proxy1.get(2) === "123") 111 proxy1.clear() [all …]
|
D | container_arraylist.js | 184 let proxy1 = new Proxy(arr2, {}); variable 185 proxy1.add(4); 186 proxy1.add(3); 187 proxy1.add(1); 188 proxy1.add(2); 189 proxy1.add(0); 190 proxy1.sort((a,b) => a-b); 193 if (proxy1[i] !== i) { 199 proxy1.clear() 200 map.set("test arraylist clear:", proxy1.length === 0) [all …]
|
D | container_vector.js | 223 let proxy1 = new Proxy(vector2, {}); variable 224 proxy1.add(4); 225 proxy1.add(3); 226 proxy1.add(1); 227 proxy1.add(2); 228 proxy1.add(0); 229 proxy1.sort((a,b) => a-b); 232 if (proxy1[i] !== i) { 238 map.set("test vector get:", proxy1.get(2) === 2) 239 proxy1.set(3, 7) [all …]
|
D | container_linked_list.js | 288 let proxy1 = new Proxy(list3, {}); variable 291 proxy1.add(i) 296 proxy1.forEach((i, d) => { 303 proxy1.clear() 304 map.set("test linkedlist clear:", proxy1.length === 0) 305 map.set("test linkedlist get:", proxy1.get(1232) === undefined) 306 map.set("test linkedlist getLastIndexOf:", proxy1.getLastIndexOf('abc') === -1) 309 proxy1.removeByIndex(99) 318 const arr1 = proxy1.convertToArray()
|
D | container_list.js | 198 let proxy1 = new Proxy(list4, {}); variable 201 proxy1.add(i) 207 map.set("test list equal:", proxy.equal(proxy1) === false) 301 for (const data of proxy1) { 310 proxy1.forEach((i, d) => { 318 map.set("test list get:", proxy1.get(200) === undefined) 319 map.set("test list getLastIndexOf:", proxy1.getLastIndexOf('abc') === -1) 322 proxy1.removeByIndex(99) 327 res = proxy1.remove(888)
|
/arkcompiler/ets_runtime/test/aottest/proxy/ |
D | proxy.ts | 38 const proxy1 = new Proxy(sum, handler); constant 39 print(proxy1(1, 2));
|