Lines Matching refs:proxy
28 let proxy = new Proxy(map, {}); variable
30 res.set("test isEmpty:", proxy.isEmpty());
31 proxy.set("a", "aa");
32 proxy.set("b", "bb");
35 res.set("test get:", proxy.length == 2 && proxy.get("a") == "aa" && proxy.get("b") == "bb");
37 …res.set("test hasKey and hasValue:", proxy.hasKey("a") && proxy.hasKey("b") && proxy.hasValue("aa"…
38 proxy.hasValue("bb") && !proxy.hasKey("c") && !proxy.hasValue("cc"));
40 proxy.set("c", "cc");
42 …res.set("test getIndexOfKey and getIndexOfValue:", proxy.getIndexOfKey("a") === 0 && proxy.getInde…
44 res.set("test getKeyAt:", proxy.getKeyAt(1) == "b");
47 let iteratorKey1 = proxy.keys();
51 let iteratorValues1 = proxy.values();
55 let iteratorEntries1 = proxy.entries();
64 for (const item of proxy) {
69 for (const item in proxy) {
74 function TestForEach(value, key, proxy) { argument
75 flag = proxy.get(key) === value;
78 proxy.forEach(TestForEach);
88 dProxy.setAll(proxy);
90 res.set("test hasAll:", dProxy.hasAll(proxy));
110 proxy["aa"] = 3;