aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-03-04 15:14:20 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-03-04 15:14:20 +0530
commitc37a0866608421d9e3afd67f0777e27091104f0f (patch)
treef72c7237b7ffb7441b286d84b03311693ed0ea83 /components/script/dom/testbinding.rs
parent12466b87062d8a20bd134bdd5824d46c5216ee48 (diff)
parent3e78b54d46fba83e2233e7087c196ee5097c320e (diff)
downloadservo-c37a0866608421d9e3afd67f0777e27091104f0f.tar.gz
servo-c37a0866608421d9e3afd67f0777e27091104f0f.zip
Auto merge of #9786 - peterjoel:fix_codegen_is_array_like, r=jdm
Fixed compile error in generated code, when webidl constructors have same number of args One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function `IsArrayLike` that no longer exists. I re-implemented it with a more rust-like naming scheme. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9786) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index 1b7b838f831..ae63c1f6e20 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -51,6 +51,16 @@ impl TestBinding {
pub fn Constructor(global: GlobalRef) -> Fallible<Root<TestBinding>> {
Ok(TestBinding::new(global))
}
+
+ #[allow(unused_variables)]
+ pub fn Constructor_(global: GlobalRef, nums: Vec<f64>) -> Fallible<Root<TestBinding>> {
+ Ok(TestBinding::new(global))
+ }
+
+ #[allow(unused_variables)]
+ pub fn Constructor__(global: GlobalRef, num: f64) -> Fallible<Root<TestBinding>> {
+ Ok(TestBinding::new(global))
+ }
}
impl TestBindingMethods for TestBinding {