Auto merge of #9606 - servo:bump-js, r=Ms2ger

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

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9606)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-02-12 21:45:51 +05:30
commit a746522b58
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>