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

Strict mode and non-strict mode silently change behavior in a shared utility file

A helper function written years ago sits in a file without an explicit mode directive, and depending on how it gets bundled it ends up running under a different mode than the author assumed. The silent assignment behavior difference is exactly the kind of thing that does not throw an error, it just produces a wrong value quietly. We now lint for missing directives specifically because of this file.
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.