Skip to content

Commit

Permalink
Fix is_null_or_undefined() call in codegen to be snake_case.
Browse files Browse the repository at this point in the history
After a bit of digging, I couldn't find when it was camelCase.  This
started getting generated when I added an overload in webgl.
  • Loading branch information
anholt committed Jan 4, 2017
1 parent c6f73a6 commit d90499a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/bindings/codegen/CodegenRust.py
Expand Up @@ -398,7 +398,7 @@ def pickFirstSignature(condition, filterLambda):
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()))

Expand Down

0 comments on commit d90499a

Please sign in to comment.