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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
316 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ | 316 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ |
317 T(InvalidLhsInPostfixOp, \ | 317 T(InvalidLhsInPostfixOp, \ |
318 "Invalid left-hand side expression in postfix operation") \ | 318 "Invalid left-hand side expression in postfix operation") \ |
319 T(InvalidLhsInPrefixOp, \ | 319 T(InvalidLhsInPrefixOp, \ |
320 "Invalid left-hand side expression in prefix operation") \ | 320 "Invalid left-hand side expression in prefix operation") \ |
321 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 321 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
322 T(LabelRedeclaration, "Label '%' has already been declared") \ | 322 T(LabelRedeclaration, "Label '%' has already been declared") \ |
323 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 323 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
324 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 324 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
325 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 325 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
326 T(MissingArrow, \ | |
327 "Expected () to start arrow function, but got '%' instead of '=>'") \ | |
rossberg
2015/06/19 13:40:40
Hm, isn't this also produced for (...x) and their
| |
326 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 328 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
327 T(MultipleDefaultsInSwitch, \ | 329 T(MultipleDefaultsInSwitch, \ |
328 "More than one default clause in switch statement") \ | 330 "More than one default clause in switch statement") \ |
329 T(NewlineAfterThrow, "Illegal newline after throw") \ | 331 T(NewlineAfterThrow, "Illegal newline after throw") \ |
330 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 332 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
331 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 333 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
332 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 334 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
333 T(BadSetterRestParameter, \ | 335 T(BadSetterRestParameter, \ |
334 "Setter function argument must not be a rest parameter") \ | 336 "Setter function argument must not be a rest parameter") \ |
335 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ | 337 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
452 | 454 |
453 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 455 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
454 Handle<Object> message_obj); | 456 Handle<Object> message_obj); |
455 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 457 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
456 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 458 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
457 Handle<Object> data); | 459 Handle<Object> data); |
458 }; | 460 }; |
459 } } // namespace v8::internal | 461 } } // namespace v8::internal |
460 | 462 |
461 #endif // V8_MESSAGES_H_ | 463 #endif // V8_MESSAGES_H_ |
OLD | NEW |