mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
enumerate should work. but is a dirty hack
This commit is contained in:
parent
2346420654
commit
ff8d2cdbbf
1 changed files with 3 additions and 12 deletions
|
@ -286,21 +286,12 @@ addTest(function() {
|
|||
*/
|
||||
//FIXME fails
|
||||
addTest(function() {
|
||||
console.log("absurd");
|
||||
// try {
|
||||
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");
|
||||
}
|
||||
// } catch (err) {
|
||||
// console.log(err);
|
||||
// }
|
||||
// works
|
||||
// for (var prop in C.location) {
|
||||
// assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Location");
|
||||
// }
|
||||
console.log("finish")
|
||||
for (var prop in C.location) {
|
||||
assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Location");
|
||||
}
|
||||
}, "[[Enumerate]] should return an empty iterator");
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue