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

Side by Side Diff: src/messages.h

Issue 1741903002: Fix strict mode function error message (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 T(SingleFunctionLiteral, "Single function literal required") \ 435 T(SingleFunctionLiteral, "Single function literal required") \
436 T(SloppyLexical, \ 436 T(SloppyLexical, \
437 "Block-scoped declarations (let, const, function, class) not yet " \ 437 "Block-scoped declarations (let, const, function, class) not yet " \
438 "supported outside strict mode") \ 438 "supported outside strict mode") \
439 T(SpeciesNotConstructor, \ 439 T(SpeciesNotConstructor, \
440 "object.constructor[Symbol.species] is not a constructor") \ 440 "object.constructor[Symbol.species] is not a constructor") \
441 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 441 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
442 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 442 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
443 T(StrictFunction, \ 443 T(StrictFunction, \
444 "In strict mode code, functions can only be declared at top level or " \ 444 "In strict mode code, functions can only be declared at top level or " \
445 "immediately within another function.") \ 445 "inside a block.") \
446 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ 446 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \
447 T(StrictWith, "Strict mode code may not include a with statement") \ 447 T(StrictWith, "Strict mode code may not include a with statement") \
448 T(StrongArguments, \ 448 T(StrongArguments, \
449 "In strong mode, 'arguments' is deprecated, use '...args' instead") \ 449 "In strong mode, 'arguments' is deprecated, use '...args' instead") \
450 T(StrongConstructorDirective, \ 450 T(StrongConstructorDirective, \
451 "\"use strong\" directive is disallowed in class constructor body") \ 451 "\"use strong\" directive is disallowed in class constructor body") \
452 T(StrongConstructorReturnMisplaced, \ 452 T(StrongConstructorReturnMisplaced, \
453 "In strong mode, returning from a constructor before its super " \ 453 "In strong mode, returning from a constructor before its super " \
454 "constructor invocation or all assignments to 'this' is deprecated") \ 454 "constructor invocation or all assignments to 'this' is deprecated") \
455 T(StrongConstructorReturnValue, \ 455 T(StrongConstructorReturnValue, \
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 564 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
565 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 565 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
566 Handle<Object> data); 566 Handle<Object> data);
567 }; 567 };
568 568
569 569
570 } // namespace internal 570 } // namespace internal
571 } // namespace v8 571 } // namespace v8
572 572
573 #endif // V8_MESSAGES_H_ 573 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698