mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 1359269 - Part 2: Add codegen support for attributes on types in WebIDL; r=bzbarsky
Depends on D19733 Differential Revision: https://phabricator.services.mozilla.com/D19734 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
0d62c9bcf9
commit
a3792c37f5
@ -4650,6 +4650,12 @@ def getJSToNativeConversionInfo(type, descriptorProvider, failureCode=None,
|
||||
# And we can't both be an object and be null or undefined
|
||||
assert not isDefinitelyObject or not isNullOrUndefined
|
||||
|
||||
# Types can also have extended attributes, copy them over
|
||||
isClamp = isClamp or type.clamp
|
||||
isEnforceRange = isEnforceRange or type.enforceRange
|
||||
if type.treatNullAsEmpty:
|
||||
treatNullAs = "EmptyString"
|
||||
|
||||
# If exceptionCode is not set, we'll just rethrow the exception we got.
|
||||
# Note that we can't just set failureCode to exceptionCode, because setting
|
||||
# failureCode will prevent pending exceptions from being set in cases when
|
||||
|
Loading…
Reference in New Issue
Block a user