| OLD | NEW |
| 1 {% macro v8_value_to_local_cpp_value(thing) %} | 1 {% macro v8_value_to_local_cpp_value(thing) %} |
| 2 {# This indirection is just to avoid spurious white-space lines. #} | 2 {# This indirection is just to avoid spurious white-space lines. #} |
| 3 {{generate_v8_value_to_local_cpp_value(thing) | trim}} | 3 {{generate_v8_value_to_local_cpp_value(thing) | trim}} |
| 4 {%- endmacro %} | 4 {%- endmacro %} |
| 5 | 5 |
| 6 | 6 |
| 7 {% macro generate_v8_value_to_local_cpp_value(thing) %} | 7 {% macro generate_v8_value_to_local_cpp_value(thing) %} |
| 8 {% set item = thing.v8_value_to_local_cpp_value or thing %} | 8 {% set item = thing.v8_value_to_local_cpp_value or thing %} |
| 9 {% if item.error_message %} | 9 {% if item.error_message %} |
| 10 /* {{item.error_message}} */ | 10 /* {{item.error_message}} */ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nInstance'] %} | 46 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nInstance'] %} |
| 47 {% endif %} | 47 {% endif %} |
| 48 {% if member.on_prototype %} | 48 {% if member.on_prototype %} |
| 49 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nPrototype'] %} | 49 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nPrototype'] %} |
| 50 {% endif %} | 50 {% endif %} |
| 51 {% if member.on_interface %} | 51 {% if member.on_interface %} |
| 52 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nInterface'] %} | 52 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nInterface'] %} |
| 53 {% endif %} | 53 {% endif %} |
| 54 {{property_location_list | join(' | ')}} | 54 {{property_location_list | join(' | ')}} |
| 55 {%- endmacro %} | 55 {%- endmacro %} |
| 56 |
| 57 |
| 58 {% macro check_api_experiment_internal(errorName, experiment_name) %} |
| 59 {% if experiment_name %} |
| 60 String {{errorName}}; |
| 61 if (!{{experiment_name}}(executionContext, {{errorName}})) { |
| 62 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
| 63 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::create(JSMe
ssageSource, ErrorMessageLevel, {{errorName}})); |
| 64 return; |
| 65 } |
| 66 {% endif %} |
| 67 {% endmacro %} |
| 68 |
| 69 |
| 70 {% macro check_api_experiment(member, isolate="info.GetIsolate()") -%} |
| 71 ExecutionContext* executionContext = currentExecutionContext({{isolate}}); |
| 72 {{check_api_experiment_internal("errorMessage", member.api_experiment_enabled_pe
r_interface) -}} |
| 73 {{check_api_experiment_internal("memberErrorMessage", member.api_experiment_enab
led) -}} |
| 74 {% endmacro %} |
| OLD | NEW |