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

Side by Side Diff: src/messages.h

Issue 1858943002: Remove runtime flags for sloppy mode block scoping features (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased 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 | « src/flag-definitions.h ('k') | src/parsing/parser.cc » ('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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 T(ElementAfterRest, "Rest element must be last element in array") \ 423 T(ElementAfterRest, "Rest element must be last element in array") \
424 T(BadSetterRestParameter, \ 424 T(BadSetterRestParameter, \
425 "Setter function argument must not be a rest parameter") \ 425 "Setter function argument must not be a rest parameter") \
426 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ 426 T(ParamDupe, "Duplicate parameter name not allowed in this context") \
427 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ 427 T(ParenthesisInArgString, "Function arg string contains parenthesis") \
428 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ 428 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \
429 T(SingleFunctionLiteral, "Single function literal required") \ 429 T(SingleFunctionLiteral, "Single function literal required") \
430 T(SloppyFunction, \ 430 T(SloppyFunction, \
431 "In non-strict mode code, functions can only be declared at top level, " \ 431 "In non-strict mode code, functions can only be declared at top level, " \
432 "inside a block, or as the body of an if statement.") \ 432 "inside a block, or as the body of an if statement.") \
433 T(SloppyLexical, \
434 "Block-scoped declarations (let, const, function, class) not yet " \
435 "supported outside strict mode") \
436 T(SpeciesNotConstructor, \ 433 T(SpeciesNotConstructor, \
437 "object.constructor[Symbol.species] is not a constructor") \ 434 "object.constructor[Symbol.species] is not a constructor") \
438 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 435 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
439 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 436 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
440 T(StrictFunction, \ 437 T(StrictFunction, \
441 "In strict mode code, functions can only be declared at top level or " \ 438 "In strict mode code, functions can only be declared at top level or " \
442 "inside a block.") \ 439 "inside a block.") \
443 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ 440 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \
444 T(StrictWith, "Strict mode code may not include a with statement") \ 441 T(StrictWith, "Strict mode code may not include a with statement") \
445 T(TemplateOctalLiteral, \ 442 T(TemplateOctalLiteral, \
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 516 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
520 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 517 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
521 Handle<Object> data); 518 Handle<Object> data);
522 }; 519 };
523 520
524 521
525 } // namespace internal 522 } // namespace internal
526 } // namespace v8 523 } // namespace v8
527 524
528 #endif // V8_MESSAGES_H_ 525 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698