mirror of
https://github.com/servo/servo.git
synced 2025-08-28 00:28:20 +01:00
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:
commit
a746522b58
6 changed files with 62 additions and 16 deletions
|
@ -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",
|
||||
|
|
28
tests/wpt/mozilla/tests/mozilla/sequence-hole.html
Normal file
28
tests/wpt/mozilla/tests/mozilla/sequence-hole.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue