mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
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:
commit
c44c73aa00
4 changed files with 19 additions and 11 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue