DescriptionIDL: Drop redundant null check for string and wrapper type attributes
For nullable string and wrapper type attributes, we use a null string or
null pointer return value from the C++ getter to represent a null
Javascript value.
Rather than generating a separate null check and v8SetReturnValueNull()
call for these types, we can use v8SetReturnValueStringOrNull() for
strings, and for wrapper types, we can always use the per-type
v8SetReturnValue() overload, since they convert null pointers to null
Javascript values already.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177292
Patch Set 1 #
Total comments: 5
Patch Set 2 : updated #
Total comments: 3
Messages
Total messages: 12 (0 generated)
|