Javascript error, apparently from NoScript

Bug reports and enhancement requests
Post Reply
aleccawley
Posts: 1
Joined: Sat Jan 09, 2010 5:37 pm

Javascript error, apparently from NoScript

Post 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
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Javascript error, apparently from NoScript

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Javascript error, apparently from NoScript

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2b5) Gecko/20091204 Firefox/3.6b5
Post Reply