From d90499ab358d54743482bad2370bee8334ea59b0 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 3 Jan 2017 23:37:42 -0800 Subject: Fix is_null_or_undefined() call in codegen to be snake_case. After a bit of digging, I couldn't find when it was camelCase. This started getting generated when I added an overload in webgl. --- components/script/dom/bindings/codegen/CodegenRust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/bindings/codegen/CodegenRust.py') diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 579f84301d3..21573cf4bea 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -398,7 +398,7 @@ class CGMethodCall(CGThing): return False # First check for null or undefined - pickFirstSignature("%s.isNullOrUndefined()" % distinguishingArg, + pickFirstSignature("%s.get().is_null_or_undefined()" % distinguishingArg, lambda s: (s[1][distinguishingIndex].type.nullable() or s[1][distinguishingIndex].type.isDictionary())) -- cgit v1.2.3