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:
Anthony Ramine 2015-10-25 22:43:13 +01:00
parent e66a361e08
commit acb13dc899
7 changed files with 105 additions and 63 deletions

View file

@ -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",

View 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>