Nicolas Cannasse 17 роки тому
батько
коміт
ff3b625d8c
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      tests/unit/TestEReg.hx

+ 2 - 2
tests/unit/TestEReg.hx

@@ -21,7 +21,7 @@ class TestEReg extends Test {
 		eq( r.matched(0), "aaa" );
 		eq( r.matched(0), "aaa" );
 		eq( r.matchedLeft(), "" );
 		eq( r.matchedLeft(), "" );
 		eq( r.matchedRight(), "" );
 		eq( r.matchedRight(), "" );
-		eq( r.matched(1), null );
+		eq( r.matched(1), null ); // JS/IE7 bug
 		eq( r.matched(2), "" );
 		eq( r.matched(2), "" );
 		unspec(function() r.matched(3));
 		unspec(function() r.matched(3));
 		unspec(function() r.matched(-1));
 		unspec(function() r.matched(-1));
@@ -29,7 +29,7 @@ class TestEReg extends Test {
 		var r = ~/^(b)?$/;
 		var r = ~/^(b)?$/;
 		t( r.match("") );
 		t( r.match("") );
 		eq( r.matched(0), "" );
 		eq( r.matched(0), "" );
-		eq( r.matched(1), null );
+		eq( r.matched(1), null ); // JS/IE7 bug
 
 
 		#end
 		#end
 	}
 	}