Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: test/mjsunit/regexp-call-as-function.js

Issue 6930006: Make RegExp objects not callable. (Closed)
Patch Set: Address review comments Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/override-eval-with-non-function.js ('k') | test/mjsunit/regress/regress-603.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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); });
« no previous file with comments | « test/mjsunit/override-eval-with-non-function.js ('k') | test/mjsunit/regress/regress-603.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698