Open
Description
<template>
{obj}
</template>
export default class extends LightningElement {
obj = Object.create(null)
}
The above errors out with TypeError: Cannot convert object to primitive value
.
This is a niche use case, because if you use obj = {}
then it renders [object Object]
instead. But maybe we should support this?
Activity