mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Support variadic interface arguments (fixes #8159)
We use a RootedVec value in codegen, of which we use the `r()` method to pass `&[&T]` to the interface methods.
This commit is contained in:
parent
e66a361e08
commit
acb13dc899
7 changed files with 105 additions and 63 deletions
|
@ -5041,6 +5041,12 @@
|
|||
"url": "/_mozilla/mozilla/union.html"
|
||||
}
|
||||
],
|
||||
"mozilla/variadic-interface.html": [
|
||||
{
|
||||
"path": "mozilla/variadic-interface.html",
|
||||
"url": "/_mozilla/mozilla/variadic-interface.html"
|
||||
}
|
||||
],
|
||||
"mozilla/webgl_context_creation_error.html": [
|
||||
{
|
||||
"path": "mozilla/webgl_context_creation_error.html",
|
||||
|
|
11
tests/wpt/mozilla/tests/mozilla/variadic-interface.html
Normal file
11
tests/wpt/mozilla/tests/mozilla/variadic-interface.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!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.passVariadicInterface(new Blob, new Blob);
|
||||
}, "Variadic interface arguments work.");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue