mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
//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");
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue