js/src/jit-test/tests/proxy/testDirectProxyKeys3.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:d37d85d592b5
1 load(libdir + "asserts.js");
2
3 // Throw a TypeError if the trap does not return an object
4 assertThrowsInstanceOf(function () {
5 Object.keys(new Proxy({}, {
6 keys: function (target) {
7 return;
8 }
9 }));
10 }, TypeError);

mercurial