mirror of
https://github.com/servo/servo.git
synced 2025-08-28 08:38:20 +01:00
Bump js to get fix from servo/rust-mozjs#237
This commit is contained in:
parent
5942e9e3cb
commit
71092e142d
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