DescriptionJSON Schema Compiler supports functions as PropertyTypes.
Before, the compiler raised an exception when a function was used as a property,
which happens whenever a function is passed as a parameter.
The solution presented here is to create a bool has_<function_name> to allow
the hand-written C++ code to know whether or not the function was passed in.
BUG=138850
TEST=function_as_parameter
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148480
Patch Set 1 #Patch Set 2 : bool function; becomes bool has_function; #
Total comments: 23
Patch Set 3 : replaced has_function with an empty dict if the function is there #Patch Set 4 : #Patch Set 5 : #
Total comments: 1
Patch Set 6 : 6 #Messages
Total messages: 9 (0 generated)
|