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

Side by Side Diff: src/messages.h

Issue 1757543003: Restrict FunctionDeclarations in Statement position (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: git cl format Created 4 years, 9 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 | « src/flag-definitions.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »
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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 T(PushPastSafeLength, \ 415 T(PushPastSafeLength, \
416 "Pushing % elements on an array-like of length % " \ 416 "Pushing % elements on an array-like of length % " \
417 "is disallowed, as the total surpasses 2**53-1") \ 417 "is disallowed, as the total surpasses 2**53-1") \
418 T(ElementAfterRest, "Rest element must be last element in array") \ 418 T(ElementAfterRest, "Rest element must be last element in array") \
419 T(BadSetterRestParameter, \ 419 T(BadSetterRestParameter, \
420 "Setter function argument must not be a rest parameter") \ 420 "Setter function argument must not be a rest parameter") \
421 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ 421 T(ParamDupe, "Duplicate parameter name not allowed in this context") \
422 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ 422 T(ParenthesisInArgString, "Function arg string contains parenthesis") \
423 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ 423 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \
424 T(SingleFunctionLiteral, "Single function literal required") \ 424 T(SingleFunctionLiteral, "Single function literal required") \
425 T(SloppyFunction, \
426 "In non-strict mode code, functions can only be declared at top level, " \
427 "inside a block, or as the body of an if statement.") \
425 T(SloppyLexical, \ 428 T(SloppyLexical, \
426 "Block-scoped declarations (let, const, function, class) not yet " \ 429 "Block-scoped declarations (let, const, function, class) not yet " \
427 "supported outside strict mode") \ 430 "supported outside strict mode") \
428 T(SpeciesNotConstructor, \ 431 T(SpeciesNotConstructor, \
429 "object.constructor[Symbol.species] is not a constructor") \ 432 "object.constructor[Symbol.species] is not a constructor") \
430 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 433 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
431 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 434 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
432 T(StrictFunction, \ 435 T(StrictFunction, \
433 "In strict mode code, functions can only be declared at top level or " \ 436 "In strict mode code, functions can only be declared at top level or " \
434 "inside a block.") \ 437 "inside a block.") \
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 556 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
554 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 557 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
555 Handle<Object> data); 558 Handle<Object> data);
556 }; 559 };
557 560
558 561
559 } // namespace internal 562 } // namespace internal
560 } // namespace v8 563 } // namespace v8
561 564
562 #endif // V8_MESSAGES_H_ 565 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698