Index: mojo/public/tools/bindings/generators/js_templates/validation_macros.tmpl |
diff --git a/mojo/public/tools/bindings/generators/js_templates/validation_macros.tmpl b/mojo/public/tools/bindings/generators/js_templates/validation_macros.tmpl |
index d4e15a7859607061dcaf9f7aa17eaaf596d02178..c9821d06009d5899d9dfc74669f738c1bdee4b30 100644 |
--- a/mojo/public/tools/bindings/generators/js_templates/validation_macros.tmpl |
+++ b/mojo/public/tools/bindings/generators/js_templates/validation_macros.tmpl |
@@ -28,6 +28,14 @@ err = messageValidator.validateInterface({{offset}}, {{field|validate_nullable_p |
// validate {{name}} |
err = messageValidator.validateInterfaceRequest({{offset}}, {{field|validate_nullable_params}}) |
{{_check_err()}} |
+{%- elif field|is_associated_interface_field %} |
+// validate {{name}} |
+err = messageValidator.validateAssociatedInterface({{offset}}, {{field|validate_nullable_params}}); |
+{{_check_err()}} |
+{%- elif field|is_associated_interface_request_field %} |
+// validate {{name}} |
+err = messageValidator.validateAssociatedInterfaceRequest({{offset}}, {{field|validate_nullable_params}}) |
+{{_check_err()}} |
{%- elif field|is_handle_field %} |
// validate {{name}} |
err = messageValidator.validateHandle({{offset}}, {{field|validate_nullable_params}}) |