Chromium Code Reviews
DescriptionIDL compiler: [RaisesException] interface type attribute
Interface attributes that [RaiseException] (on getter)
(also nullable attributes) have a slight wrinkle:
we may need to call .release() on jsValue when calling v8SetReturn*.
This changes the *r*value of |cpp_value|, but not the lvalue
(we don't call |release| on assignment!), so fix by introducing an
local auxiliary |cpp_rvalue| variable in the Python code for the getter.
BUG=239771
R=haraken
NOTRY=true
Patch Set 1 #Patch Set 2 : Simpler logic #Patch Set 3 : Fix comment #Patch Set 4 : EventHandler #
Messages
Total messages: 9 (0 generated)
|
|||||||||||||||||||||||||||||||||||||