Page 1 of 1

Javascript error, apparently from NoScript

Posted: Sat Jan 09, 2010 5:43 pm
by aleccawley
Warning: reference to undefined property map[m[1] + m[3]]
Source File: chrome://noscript/content/Main.js
Line: 979
NoScript 1.9.9.35
Firefox 3.5.6
Windows XP

Re: Javascript error, apparently from NoScript

Posted: Sat Jan 09, 2010 5:58 pm
by Giorgio Maone
Not an error, just a warning (map is used as an hashmap and the referenced key is missing, which is not unexpected).
You're getting it because you've got javascript.options.strict enabled, something you may prefer to turn off especially if you're concerned with performance.
Anyway, since in this case there's no performance penalty in turning this statement in a "check for key presence" one, this warning will go away in next release.

Re: Javascript error, apparently from NoScript

Posted: Sat Jan 09, 2010 7:18 pm
by dhouwn
And while we are at it and in case you activated it to write supposedly 'better' JS code: Why Firefox's strict JavaScript warnings are wrong

Note that javascript.options.strict has not much in common with strict mode in the upcoming ECMAScript version.