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

Unified Diff: test/cctest/test-parsing.cc

Issue 2510873005: A decimal integer literal with a leading 0 is now an error in strict mode. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index fe95ab7b9aa4bd153c3051c30144dd873e4b1a14..81d12063f2df986f3a2b289f2502b70443f47b20 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -1615,9 +1615,9 @@ TEST(StrictOctal) {
v8_compile(v8_str(script));
CHECK(try_catch.HasCaught());
v8::String::Utf8Value exception(try_catch.Exception());
- CHECK_EQ(0,
- strcmp("SyntaxError: Octal literals are not allowed in strict mode.",
- *exception));
+ CHECK_EQ(0, strcmp("SyntaxError: Number literals must not have a '0' prefix "
+ "in strict mode.",
+ *exception));
}

Powered by Google App Engine
This is Rietveld 408576698