Index: test/mjsunit/regexp-call-as-function.js |
diff --git a/test/mjsunit/regexp-call-as-function.js b/test/mjsunit/regexp-call-as-function.js |
index 4cbe7f94f37c382353bb148012459321451c6cd1..add81ac25d55c7cda8c0c716156e06cb19c831c5 100644 |
--- a/test/mjsunit/regexp-call-as-function.js |
+++ b/test/mjsunit/regexp-call-as-function.js |
@@ -33,4 +33,4 @@ var regexp = /a(b)(c)/; |
var subject = "xyzabcde"; |
var expected = 'abc,b,c'; |
assertEquals(expected, String(regexp.exec(subject))); |
-assertEquals(expected, String(regexp(subject))); |
+assertThrows(function(){ regexp(subject); }); |