Bump js to get fix from servo/rust-mozjs#237

This commit is contained in:
Anthony Ramine 2016-02-08 18:20:17 +01:00
parent 5942e9e3cb
commit 71092e142d
6 changed files with 62 additions and 16 deletions

View file

@ -6054,6 +6054,12 @@
"url": "/_mozilla/mozilla/script_type.html"
}
],
"mozilla/sequence-hole.html": [
{
"path": "mozilla/sequence-hole.html",
"url": "/_mozilla/mozilla/sequence-hole.html"
}
],
"mozilla/storage.html": [
{
"path": "mozilla/storage.html",

View file

@ -0,0 +1,28 @@
<!doctype html>
<meta charset="utf-8">
<title></title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
var t = new TestBinding;
t.passSequence([1,, 3]);
t.passStringSequence(["camembert",, "comté"]);
assert_throws(new TypeError, function () { t.passInterfaceSequence([new Blob,, new Blob]) });
}, "Sequences with holes are correctly handled");
test(function() {
var test_error = { name: "test" };
Object.defineProperty(Array.prototype, 1, { get: function() { throw test_error; } });
var t = new TestBinding;
assert_throws(test_error, function() {
t.passSequence([1,, 3]);
});
assert_throws(test_error, function() {
t.passStringSequence(["camembert",, "comté"]);
});
assert_throws(test_error, function() {
t.passInterfaceSequence([new Blob,, new Blob]);
});
}, "Sequences with holes and a getter on the prototype are correctly handled");
</script>