| Index: mojo/public/bindings/generators/js_templates/struct_definition.tmpl
|
| diff --git a/mojo/public/bindings/generators/js_templates/struct_definition.tmpl b/mojo/public/bindings/generators/js_templates/struct_definition.tmpl
|
| index 4c66df267e187329a32985cab16f91bd3e3dee54..e80e675988c00cf7048c92a3e81888a88848b239 100644
|
| --- a/mojo/public/bindings/generators/js_templates/struct_definition.tmpl
|
| +++ b/mojo/public/bindings/generators/js_templates/struct_definition.tmpl
|
| @@ -1,7 +1,7 @@
|
| {%- macro set_default(kind, value, depth) -%}
|
| {#--- Strings ---#}
|
| {%- if kind|is_string_kind -%}
|
| -{{caller(value)}}
|
| +{{caller(value|expression_to_text(module))}}
|
| {#--- Arrays ---#}
|
| {%- elif kind|is_array_kind %}
|
| {%- set _ = value|verify_token_type("ARRAY") %}
|
| @@ -35,11 +35,12 @@ tmp{{depth}}.{{subfield.name}} = {{result}};
|
| }
|
| {#--- POD types ---#}
|
| {%- else -%}
|
| -{{caller(value|substitute_namespace(imports))}}
|
| +{{caller(value|expression_to_text(module))}}
|
| {%- endif %}
|
| {%- endmacro %}
|
|
|
|
|
| +{#--- Begin #}
|
| function {{struct.name}}() {
|
| {%- for packed_field in struct.packed.packed_fields %}
|
| {%- if packed_field.field.default %}
|
|
|