| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 {{property_location_list | join(' | ')}} | 54 {{property_location_list | join(' | ')}} |
| 55 {%- endmacro %} | 55 {%- endmacro %} |
| 56 | 56 |
| 57 | 57 |
| 58 {% macro check_origin_trial(member, isolate="info.GetIsolate()") -%} | 58 {% macro check_origin_trial(member, isolate="info.GetIsolate()") -%} |
| 59 ExecutionContext* executionContext = currentExecutionContext({{isolate}}); | 59 ExecutionContext* executionContext = currentExecutionContext({{isolate}}); |
| 60 String errorMessage; | 60 String errorMessage; |
| 61 if (!{{member.origin_trial_enabled_function}}(executionContext, errorMessage)) { | 61 if (!{{member.origin_trial_enabled_function}}(executionContext, errorMessage)) { |
| 62 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); | 62 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
| 63 if (!errorMessage.isEmpty()) { | 63 if (!errorMessage.isEmpty()) { |
| 64 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::create(J
SMessageSource, ErrorMessageLevel, errorMessage)); | 64 executionContext->addConsoleMessage(ConsoleMessage::create(JSMessageSour
ce, ErrorMessageLevel, errorMessage)); |
| 65 } | 65 } |
| 66 return; | 66 return; |
| 67 } | 67 } |
| 68 {% endmacro %} | 68 {% endmacro %} |
| OLD | NEW |