enumerate should work. but is a dirty hack

This commit is contained in:
ddh 2017-06-15 23:27:37 +01:00
parent 2346420654
commit ff8d2cdbbf

View file

@ -286,21 +286,12 @@ addTest(function() {
*/ */
//FIXME fails //FIXME fails
addTest(function() { addTest(function() {
console.log("absurd");
// try {
for (var prop in C) { for (var prop in C) {
// //console.log("this is nonsense");
// console.log(prop);
assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Window"); assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Window");
} }
// } catch (err) { for (var prop in C.location) {
// console.log(err); assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Location");
// } }
// works
// for (var prop in C.location) {
// assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Location");
// }
console.log("finish")
}, "[[Enumerate]] should return an empty iterator"); }, "[[Enumerate]] should return an empty iterator");