blob: ca2ca00915dec03ffe6310706d8383ce7fb2f5d7 [file] [log] [blame]
function test() {
// SetIntegrityLevel -> [[OwnPropertyKeys]]
var ownKeysCalled = 0;
var p = new Proxy({}, { ownKeys: function(o) { ownKeysCalled++; return Object.keys(o); }});
Object.freeze(p);
return ownKeysCalled === 1;
}
if (!test())
throw new Error("Test failed");