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.
This commit is contained in:
Eric Anholt 2017-01-03 23:37:42 -08:00
parent c6f73a612a
commit d90499ab35

View file

@ -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()))