+ 1

Is the Javascript engine in this app running in strict mode by default?

I have noticed several of the projects I have worked on seen to show behaviors associated with strict mode. Does this app's Javascript engine run in strict mode by default?

21st Mar 2018, 8:02 PM
josh mizzi
josh mizzi - avatar
1 Réponse
+ 1
function isStrictMode() { try{var o={p:1,p:2};}catch(E){return true;} return false; } console.log(isStrictMode()); var isStrict = (function() { return !this; })(); console.log(isStrict);
15th May 2018, 2:44 PM
Matteo Niccoli
Matteo Niccoli - avatar