blob: 28a928de344c7cdc131e937c5ac2c3dca9c38241 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<iframe></iframe>
<script>
description("This test should create a Headers with strange Arrays.");
{
let array = [ [ 'hello', 'world' ] ];
array.__proto__ = null;
var headers = new Headers(array);
shouldBeNull("headers.get('hello')");
}
{
// From the other realm.
let frame = frames[0];
let array = new frame.Array();
array.push([ 'hello', 'world' ]);
var headers = new Headers(array);
shouldBeEqualToString("headers.get('hello')", "world");
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>