predicate_alist_match: typecheck for RegExp keys
commit3e1afcad4b63d40c3af6bc16e4ec540d374767d1
authorJohn Foerch <jjfoerch@earthlink.net>
Wed, 4 May 2011 19:08:18 +0000 (4 15:08 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Wed, 4 May 2011 19:11:35 +0000 (4 15:11 -0400)
tree30ef860017d1754352ed9bfdcc033ead295ce37f
parenta90f197c43f2e7a1133e8bae8922ce636a873f09
predicate_alist_match: typecheck for RegExp keys

In XULRunner 5 and up, RegExps can no longer be called as functions.
Fuzzing up the definition of 'predicate' to explicitly allow RegExp
objects in predicate_alist_match seemed a reasonable fix.

Resolves issue350.

http://whereswalden.com/2011/03/06/javascript-change-in-firefox-5-not-4-and-in-other-browsers-regular-expressions-cant-be-called-like-functions/

https://bugzilla.mozilla.org/show_bug.cgi?id=313637

https://bugzilla.mozilla.org/show_bug.cgi?id=61911
modules/utils.js