OLD | NEW |
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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 "is disallowed, as the total surpasses 2**53-1") \ | 416 "is disallowed, as the total surpasses 2**53-1") \ |
417 T(ElementAfterRest, "Rest element must be last element in array") \ | 417 T(ElementAfterRest, "Rest element must be last element in array") \ |
418 T(BadSetterRestParameter, \ | 418 T(BadSetterRestParameter, \ |
419 "Setter function argument must not be a rest parameter") \ | 419 "Setter function argument must not be a rest parameter") \ |
420 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 420 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
421 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ | 421 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
422 T(SingleFunctionLiteral, "Single function literal required") \ | 422 T(SingleFunctionLiteral, "Single function literal required") \ |
423 T(SloppyLexical, \ | 423 T(SloppyLexical, \ |
424 "Block-scoped declarations (let, const, function, class) not yet " \ | 424 "Block-scoped declarations (let, const, function, class) not yet " \ |
425 "supported outside strict mode") \ | 425 "supported outside strict mode") \ |
| 426 T(SpeciesNotConstructor, \ |
| 427 "object.constructor[Symbol.species] is not a constructor") \ |
426 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 428 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
427 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 429 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
428 T(StrictFunction, \ | 430 T(StrictFunction, \ |
429 "In strict mode code, functions can only be declared at top level or " \ | 431 "In strict mode code, functions can only be declared at top level or " \ |
430 "immediately within another function.") \ | 432 "immediately within another function.") \ |
431 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ | 433 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ |
432 T(StrictWith, "Strict mode code may not include a with statement") \ | 434 T(StrictWith, "Strict mode code may not include a with statement") \ |
433 T(StrongArguments, \ | 435 T(StrongArguments, \ |
434 "In strong mode, 'arguments' is deprecated, use '...args' instead") \ | 436 "In strong mode, 'arguments' is deprecated, use '...args' instead") \ |
435 T(StrongConstructorDirective, \ | 437 T(StrongConstructorDirective, \ |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 547 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
546 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 548 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
547 Handle<Object> data); | 549 Handle<Object> data); |
548 }; | 550 }; |
549 | 551 |
550 | 552 |
551 } // namespace internal | 553 } // namespace internal |
552 } // namespace v8 | 554 } // namespace v8 |
553 | 555 |
554 #endif // V8_MESSAGES_H_ | 556 #endif // V8_MESSAGES_H_ |
OLD | NEW |