* I'm poor at English...
Since the latest update, I've encountered an error when using some methods
such as forEach, map, filter and etc.
try {
unsafeWindow.array.forEach(function(item){});
catch(error) {
alert(error);
}
=> "Error: Permission denied to access object"
alert(unsafeWindow.array.forEach);
=> native function
[] instanceof Array === true;
unsafeWindow.array instanceof Array === false;
Now I'm using an alternative code to solve this problem.
[].forEach.call(unsafeWindow, function(item){});
or "for in" loop (outdated code...)
Thanks.
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.