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