| Index: Source/bindings/scripts/code_generator_v8.py
|
| diff --git a/Source/bindings/scripts/code_generator_v8.py b/Source/bindings/scripts/code_generator_v8.py
|
| index 37253ba582581d74d05b6cd002385d163791183d..84ddfe7fc9aa34a0ec1390fada1df978c263ffd8 100644
|
| --- a/Source/bindings/scripts/code_generator_v8.py
|
| +++ b/Source/bindings/scripts/code_generator_v8.py
|
| @@ -184,8 +184,9 @@ def runtime_enabled_if(code, runtime_enabled_function_name):
|
| return code
|
| # Indent if statement to level of original code
|
| indent = re.match(' *', code).group(0)
|
| - return ('%sif (%s())\n' % (indent, runtime_enabled_function_name) +
|
| - ' %s' % code)
|
| + return ('%sif (%s()) {\n' % (indent, runtime_enabled_function_name) +
|
| + ' %s\n' % '\n '.join(code.splitlines()) +
|
| + '%s}\n' % indent)
|
|
|
|
|
| ################################################################################
|
|
|