aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-01-03 23:37:42 -0800
committerEric Anholt <eric@anholt.net>2017-01-04 09:57:39 -0800
commitd90499ab358d54743482bad2370bee8334ea59b0 (patch)
tree6361f8d0e97250671609389b59eebc4523ad5115 /components/script/dom/bindings/codegen/CodegenRust.py
parentc6f73a612a88a01a31d2674a00f10bd8509529f9 (diff)
downloadservo-d90499ab358d54743482bad2370bee8334ea59b0.tar.gz
servo-d90499ab358d54743482bad2370bee8334ea59b0.zip
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.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py2
1 files changed, 1 insertions, 1 deletions
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()))