blob: 10aa62e8a6cc4d259f6af22103348d8a84da15af [file] [log] [blame]
function test() {
var proxied = {};
var passed = false;
for (var i in
new Proxy(proxied, {
enumerate: function (t) {
passed = t === proxied;
return {
next: function(){ return { done: true, value: null };}
};
}
})
) { }
return passed;
}
if (!test())
throw new Error("Test failed");