A colleague recently run into a strange problem. He used
console.log(element.label);
to log element and event names to the script console. All was working but suddenly the script stopped working with:

What has happened? It turned out that one element made the script fail and that element has { or } in their name or label.
As you can see in this article from long time ago, medini uses a special formatter that is using {0} as placeholder in the first argument to log function. So the fix was to use:
console.log("{0}", element.label);
Happy Scripting
Jan