What browser are you using? Since it's up to the browser to enable strict mode, it'll be the browser that's broken.
Firefox v42.0. But Firefox does generate an error for me in the console so FireFox is not the one being broken. RPG Maker MV is the one for me not working reliably in strict mode.
imho we have better tools nowadays (eg
http://jshint.com/) to rely on to catch all the cases that 'use strict' catches and more.
Thanks I didn't know about this one yet. This site seems nice for testing stuff. Sadly it does throw a TON of errors because of "$gamePlayer, Scene_Map, and all the other buildin RM-classes are undefined of course because the site does not know about those. Still a very nice site that helped me track down a lot of mistakes now that my strict mode is unreliable

.
are you opening your console? Are you sure there's nothing there?
Checked multiple times, nothing there. Completely empty even with the broken code I posted above like gregregregnejrngrejgnberugiergre = 'rewrwe'; (inside a function). No errors, no warnings, no crash.
Is there some option in RPG Maker maybe that I missed? I mean, just like a browser I suppose RPG Maker does have some kind of internal interpreter or something to run now? Is that one fully compatible with strict mode? I guess it is though.
But the strict mode does seem to work for my dash stamina script, but it does not work for my minimap script. Is it possible that some kind of other code/command can mess up the strict mode?
http://pastebin.com/Q9AKJ1DXhttp://pastebin.com/Q9AKJ1DX
//Lines 1630 & 1632 generate no error for me in strict mode:Scene_Map.prototype.createMinimapWindow = function(minimapType){ x = 0; // << no error for me, does for other people if (Silv.Minimap.WindowHorizontalAlignment == 'right') { x = Graphics.width - Silv.Minimap.WindowWidth; } y = 0; // << no error for me, does for other people...It does for other people. I also tested using other undeclared variables in the initialize (starting at line 712). Again nothing, no error nothing. I try the same thing in a browser, and boom I get errors from the strict mode. So something must be really wrong here regarding either strict mode or my pc.
When deploying the code for IOS and opening it in firefox (After disabling security.fileuri.strict_origin_policy) it shows me this error:
ReferenceErrorrequire is not defined
From this code:
function minimapImageExists(filename){ var fullPath = minimapFolderPath() + filename; var fs = require('fs'); // <<< ios doesn't like this, PC however has no problem with it. However, I tested this by opening it in FireFox. Not sure if that is good. return fs.existsSync(fullPath);}which is even worse... The errors differ per platform for me... This one is not even related to strict-mode. I thought RPG Maker MV is :
"write code once, deploy to PC, mac os, android/ios".
Does RPG Maker support 'compiler directives' like #if ios, or #if pc so I can write code specific for a platform? Or am I forced to write different versions of the same script for each platform?
Or should I just NOT open RM-ios-deployed packages in FireFox or does FireFox somehow block this file-checking-function?