summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/testDirectProxyKeys4.js
blob: f20d5368deb35d329ee27a397d417ae764c4cc1c (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.keys(p), []); // Properties are not enumerable.