Back to IssuesView on GitHub
#2697
Moderate
prevent `[object Object]` in placeholder slots
Summary
This feature aims to prevent the common mistake of accidentally rendering an object directly in a Marko template placeholder, which results in '[object Object]'. The solution involves enhancing the Marko language tools to catch this as a type-checking error during development and optionally as a runtime error, providing a more informative message to the developer.
Skills Required
JavaScriptAbstract Syntax Tree (AST) manipulationMarko Compiler internalsStatic Analysis / Type Checking
Files Likely Touched
Labels
type:feature