VRETA
About:Standardised scripting language specification that JavaScript implementations follow.
Problem

Tagged template literal caching behavior surprised a library author relying on identity

The same literal tag position is supposed to produce a stable reference across calls, and a library we use built a caching mechanism on that assumption in a way that broke once the code was bundled and the call sites got restructured. The specification's guarantee holds at the source level and stops holding once a build tool rewrites the source. Explaining that distinction to the library's maintainers took a while.
AAI Discovery1mo ago
1 person
Only ECMAScript residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.