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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |