Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index f55bad3dbb56cb7b67b48fa724151ec33b808294..85c3b5841a29acbf8c09873d857d338b19ffbc89 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -358,8 +358,8 @@ test(function() { |
// kInvalidRegExpFlags |
test(function() { |
- /a/x.test("a"); |
-}, "Invalid flags supplied to RegExp constructor 'x'", SyntaxError); |
+ eval("/a/x.test(\"a\");"); |
+}, "Invalid regular expression flags", SyntaxError); |
// kMalformedRegExp |
test(function() { |