Home

marko-js/marko

Status:Indexed
Analyzed 3d ago10K+ starsJavaScript

A declarative, HTML-based language that makes building web apps fun

Back to Issues
#2697
Moderate

prevent `[object Object]` in placeholder slots

View on GitHub

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

Labels

type:feature