Auto merge of #8498 - nox:fix-variadic-and-default-arguments, r=jdm

Properly handle variadic arguments preceded by default values

I broke that in #8197.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8498)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-13 04:22:11 +05:30
commit c44c73aa00
4 changed files with 19 additions and 11 deletions

View file

@ -5,7 +5,12 @@
<script src=/resources/testharnessreport.js></script>
<script>
test(function() {
var t = new TestBinding;
t.passVariadicInterface(new Blob, new Blob);
var t = new TestBinding;
t.passVariadicInterface(new Blob, new Blob);
}, "Variadic interface arguments work.");
test(function() {
var t = new TestBinding;
t.passVariadicBooleanAndDefault();
}, "Default values and variadic arguments work together.");
</script>