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