From 2ef17cd297db7cf94ad88588a6bf945527e22eb5 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 20 Nov 2011 20:37:59 -0500 Subject: [PATCH] IE uses empty string (rather than undefined) for unmatched regex groups --- test/inc-testcase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/inc-testcase.js b/test/inc-testcase.js index d88e659..9065abe 100644 --- a/test/inc-testcase.js +++ b/test/inc-testcase.js @@ -132,7 +132,7 @@ module.exports = function( test_case ) args.push( [ context[ prop ][ i ] ] ); } } - else if ( method !== undefined ) + else if ( method ) { throw Error( "Unknown test method: " + method ); }