blob: 090a3d7410644b8ffb0ae15f07cbe82c751de787 (
plain)
1
2
3
4
5
|
load(libdir + "asserts.js");
var handler = { ownKeys : () => [ 'foo', 'foo' ] };
for (let p of [new Proxy({}, handler), Proxy.revocable({}, handler).proxy])
assertDeepEq(Object.getOwnPropertyNames(p), ['foo', 'foo']);
|