This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch feature/es-module-support
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/feature/es-module-support by
this push:
new d4cccd20a TAP5-2803: fixing broken commit_with_no_javascript test
d4cccd20a is described below
commit d4cccd20af6537dc289fca98331fd2c28b2fc9ea
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Wed Apr 2 08:47:28 2025 -0300
TAP5-2803: fixing broken commit_with_no_javascript test
---
.../tapestry5/internal/services/ajax/JavaScriptSupportImpl.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ajax/JavaScriptSupportImpl.java
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ajax/JavaScriptSupportImpl.java
index 64fbadf78..2d9308b98 100644
---
a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ajax/JavaScriptSupportImpl.java
+++
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ajax/JavaScriptSupportImpl.java
@@ -253,7 +253,10 @@ public class JavaScriptSupportImpl implements
JavaScriptSupport
}
});
- esModuleInits.stream().forEach(linker::addEsModuleInitialization);
+ if (!esModuleInits.isEmpty())
+ {
+ esModuleInits.stream().forEach(linker::addEsModuleInitialization);
+ }
}
public void addInitializerCall(InitializationPriority priority, String
functionName, JSONObject parameter)