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

Side by Side Diff: src/messages.h

Issue 1416753009: [parser] early error when declaration Pattern missing Initializer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 "RegExp.prototype.flags getter called on non-object %") \ 120 "RegExp.prototype.flags getter called on non-object %") \
121 T(FunctionBind, "Bind must be called on a function") \ 121 T(FunctionBind, "Bind must be called on a function") \
122 T(GeneratorRunning, "Generator is already running") \ 122 T(GeneratorRunning, "Generator is already running") \
123 T(IllegalInvocation, "Illegal invocation") \ 123 T(IllegalInvocation, "Illegal invocation") \
124 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ 124 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \
125 T(InstanceofFunctionExpected, \ 125 T(InstanceofFunctionExpected, \
126 "Expecting a function in instanceof check, but got %") \ 126 "Expecting a function in instanceof check, but got %") \
127 T(InstanceofNonobjectProto, \ 127 T(InstanceofNonobjectProto, \
128 "Function has non-object prototype '%' in instanceof check") \ 128 "Function has non-object prototype '%' in instanceof check") \
129 T(InvalidArgument, "invalid_argument") \ 129 T(InvalidArgument, "invalid_argument") \
130 T(InvalidDestructuringDeclaration, \
adamk 2015/11/03 20:13:53 Looks like we're currently giving bad error messag
131 "Missing initializer in destructuring declaration") \
130 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ 132 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
131 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ 133 T(IteratorResultNotAnObject, "Iterator result % is not an object") \
132 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ 134 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \
133 T(LanguageID, "Language ID should be string or object.") \ 135 T(LanguageID, "Language ID should be string or object.") \
134 T(MethodCalledOnWrongObject, \ 136 T(MethodCalledOnWrongObject, \
135 "Method % called on a non-object or on a wrong type of object.") \ 137 "Method % called on a non-object or on a wrong type of object.") \
136 T(MethodInvokedOnNullOrUndefined, \ 138 T(MethodInvokedOnNullOrUndefined, \
137 "Method invoked on undefined or null value.") \ 139 "Method invoked on undefined or null value.") \
138 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ 140 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \
139 T(NoAccess, "no access") \ 141 T(NoAccess, "no access") \
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 499 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
498 Isolate* isolate, LookupIterator* property_lookup, 500 Isolate* isolate, LookupIterator* property_lookup,
499 Handle<String> default_value); 501 Handle<String> default_value);
500 502
501 List<Handle<JSObject> > visited_; 503 List<Handle<JSObject> > visited_;
502 }; 504 };
503 } // namespace internal 505 } // namespace internal
504 } // namespace v8 506 } // namespace v8
505 507
506 #endif // V8_MESSAGES_H_ 508 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698