blob: e886b6804b0b2c72454cffa71b02991e6b8edea5 [file] [log] [blame]
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
* Contributors: Igor Bukanov
*/
function test() {
var p = Proxy.create({ keys: function() { return { get length() { throw 1; }}; }});
try {
for (i in p);
throw new Error("an exception should be thrown");
} catch (e) {
assertEq(e, 1);
}
}
test();
reportCompare(0, 0, "ok");