From 7eff6fde7cd9a483fc6e7476e81423c8ecd94fa2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 27 Apr 2014 11:40:02 -0700 Subject: [PATCH] Avoid `RegExp#teat` error in older Opera. --- test/test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index f49b42b8c..9e372fcb2 100644 --- a/test/test.js +++ b/test/test.js @@ -10368,7 +10368,9 @@ QUnit.module('lodash methods'); (function() { - var allMethods = _.reject(_.functions(_), _.bind(RegExp.prototype.test, /^_/)); + var allMethods = _.reject(_.functions(_), function(methodName) { + return /^_/.test(methodName); + }); var returnArrays = [ 'at',