Lines Matching refs:log
219 var log = []; variable
225 log.push([trap, ...arguments]);
233 log.length = 0;
239 assertEquals(1, log.length)
240 for (var i in log) assertSame(target, log[i][1]);
242 assertEquals(["get", target, "toJSON", proxy], log[0]);
247 log.length = 0;
253 assertEquals(4, log.length)
254 for (var i in log) assertSame(target, log[i][1]);
257 ["get", target, "toJSON", proxy], log[0]);
259 ["ownKeys", target], log[1]); // EnumerableOwnNames
261 ["getOwnPropertyDescriptor", target, "foo"], log[2]); // EnumerableOwnNames
263 ["get", target, "foo", proxy], log[3]);
268 log.length = 0;
274 assertEquals(3, log.length)
275 for (var i in log) assertSame(target, log[i][1]);
277 assertEquals(["get", target, "toJSON", proxy], log[0]);
278 assertEquals(["get", target, "length", proxy], log[1]);
279 assertEquals(["get", target, "0", proxy], log[2]);
284 log.length = 0;
291 assertEquals(3, log.length)
292 for (var i in log) assertSame(target, log[i][1]);
294 assertEquals(4, log[0].length)
295 assertEquals("apply", log[0][0]);
296 assertEquals("", log[0][3][0]);
297 assertEquals({0: "foo", 1: 666}, log[0][3][1]);
298 assertEquals(4, log[1].length)
299 assertEquals("apply", log[1][0]);
300 assertEquals(["0", "foo"], log[1][3]);
301 assertEquals(4, log[2].length)
302 assertEquals("apply", log[2][0]);
303 assertEquals(["1", 666], log[2][3]);
308 log.length = 0;
315 assertEquals(2, log.length)
316 for (var i in log) assertSame(target, log[i][1]);
318 assertEquals(["get", target, "length", proxy], log[0]);
319 assertEquals(["get", target, "0", proxy], log[1]);
324 log.length = 0;
331 assertEquals(2, log.length);
332 for (var i in log) assertSame(target, log[i][1]);
334 assertEquals(["get", target, "length", proxy], log[0]);
335 assertEquals(["get", target, "0", proxy], log[1]);
368 log.length = 0;
375 assertEquals(3, log.length);
376 for (var i in log) assertSame(target, log[i][1]);
378 assertEquals(["ownKeys", target], log[0]);
379 assertEquals(["getOwnPropertyDescriptor", target, "baz"], log[1]);
384 log.length = 0;
391 assertEquals(2, log.length);
392 for (var i in log) assertSame(target, log[i][1]);
394 assertEquals(["get", target, "length", proxy], log[0]);
395 assertEquals(["get", target, "0", proxy], log[1]);
429 log.length = 0;
435 assertEquals(0, log.length);
438 assertEquals(0, log.length);
448 log.length = 0;
454 assertEquals(3, log.length);
455 for (var i in log) assertSame(target, log[i][1]);
457 assertEquals(4, log[0].length);
458 assertEquals("apply", log[0][0]);
459 assertEquals(["0", true], log[0][3]);
460 assertEquals(4, log[1].length);
461 assertEquals("apply", log[1][0]);
462 assertEquals(["1", false], log[1][3]);
463 assertEquals(4, log[2].length);
464 assertEquals("apply", log[2][0]);
465 assertEquals(["", [42, 42]], log[2][3]);
470 log.length = 0;
480 assertEquals(4, log.length);
481 for (var i in log) assertSame(target, log[i][1]);
483 assertEquals(["ownKeys", target], log[0]);
484 assertEquals(["getOwnPropertyDescriptor", target, "baz"], log[1]);
485 assertEquals(["get", target, "baz", proxy], log[2]);
487 {value: 5, configurable: true, writable: true, enumerable: true}], log[3]);
492 log.length = 0;
505 assertEquals(3, log.length);
506 for (var i in log) assertSame(target, log[i][1]);
508 assertEquals(["get", target, "length", proxy], log[0]);
509 assertEquals(["get", target, "0", proxy], log[1]);
510 assertEquals(["deleteProperty", target, "0"], log[2]);