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

Unified Diff: src/messages.h

Issue 1314203002: [strong] Class constructor bodies cannot contain "use strong" directive (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: formatting Created 5 years, 4 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 | « no previous file | src/parser.cc » ('j') | test/mjsunit/strong/function-arity.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index f08135bb16e17c5db3d713a3514a418f12b44536..5c9c32357d5f3b01547a881a207be365c04c6825 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -334,6 +334,8 @@ class CallSite {
T(StrictWith, "Strict mode code may not include a with statement") \
T(StrongArguments, \
"In strong mode, 'arguments' is deprecated, use '...args' instead") \
+ T(StrongConstructorDirective, \
+ "\"use strong\" directive is disallowed in class constructor body") \
T(StrongConstructorReturnMisplaced, \
"In strong mode, returning from a constructor before its super " \
"constructor invocation or all assignments to 'this' is deprecated") \
« no previous file with comments | « no previous file | src/parser.cc » ('j') | test/mjsunit/strong/function-arity.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698