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

Side by Side Diff: src/messages.h

Issue 1900033003: Disallow generator declarations in certain locations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | src/parsing/parser.h » ('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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 T(DerivedConstructorReturn, \ 370 T(DerivedConstructorReturn, \
371 "Derived constructors may only return object or undefined") \ 371 "Derived constructors may only return object or undefined") \
372 T(DuplicateConstructor, "A class may only have one constructor") \ 372 T(DuplicateConstructor, "A class may only have one constructor") \
373 T(DuplicateExport, "Duplicate export of '%'") \ 373 T(DuplicateExport, "Duplicate export of '%'") \
374 T(DuplicateProto, \ 374 T(DuplicateProto, \
375 "Duplicate __proto__ fields are not allowed in object literals") \ 375 "Duplicate __proto__ fields are not allowed in object literals") \
376 T(ForInOfLoopInitializer, \ 376 T(ForInOfLoopInitializer, \
377 "% loop variable declaration may not have an initializer.") \ 377 "% loop variable declaration may not have an initializer.") \
378 T(ForInOfLoopMultiBindings, \ 378 T(ForInOfLoopMultiBindings, \
379 "Invalid left-hand side in % loop: Must have a single binding.") \ 379 "Invalid left-hand side in % loop: Must have a single binding.") \
380 T(GeneratorInLegacyContext, \
381 "Generator declarations are not allowed in legacy contexts.") \
380 T(IllegalBreak, "Illegal break statement") \ 382 T(IllegalBreak, "Illegal break statement") \
381 T(IllegalContinue, "Illegal continue statement") \ 383 T(IllegalContinue, "Illegal continue statement") \
382 T(IllegalLanguageModeDirective, \ 384 T(IllegalLanguageModeDirective, \
383 "Illegal '%' directive in function with non-simple parameter list") \ 385 "Illegal '%' directive in function with non-simple parameter list") \
384 T(IllegalReturn, "Illegal return statement") \ 386 T(IllegalReturn, "Illegal return statement") \
385 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ 387 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \
386 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \ 388 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \
387 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ 389 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \
388 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ 390 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \
389 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ 391 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 524 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
523 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 525 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
524 Handle<Object> data); 526 Handle<Object> data);
525 }; 527 };
526 528
527 529
528 } // namespace internal 530 } // namespace internal
529 } // namespace v8 531 } // namespace v8
530 532
531 #endif // V8_MESSAGES_H_ 533 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | src/parsing/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698