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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 T(ForOfLoopInitializer, \ | 321 T(ForOfLoopInitializer, \ |
322 "for-of loop variable declaration may not have an initializer.") \ | 322 "for-of loop variable declaration may not have an initializer.") \ |
323 T(IllegalAccess, "Illegal access") \ | 323 T(IllegalAccess, "Illegal access") \ |
324 T(IllegalBreak, "Illegal break statement") \ | 324 T(IllegalBreak, "Illegal break statement") \ |
325 T(IllegalContinue, "Illegal continue statement") \ | 325 T(IllegalContinue, "Illegal continue statement") \ |
326 T(IllegalLanguageModeDirective, \ | 326 T(IllegalLanguageModeDirective, \ |
327 "Illegal '%' directive in function with non-simple parameter list") \ | 327 "Illegal '%' directive in function with non-simple parameter list") \ |
328 T(IllegalReturn, "Illegal return statement") \ | 328 T(IllegalReturn, "Illegal return statement") \ |
329 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ | 329 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ |
330 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ | 330 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ |
| 331 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ |
| 332 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ |
331 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ | 333 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ |
332 T(InvalidLhsInPostfixOp, \ | 334 T(InvalidLhsInPostfixOp, \ |
333 "Invalid left-hand side expression in postfix operation") \ | 335 "Invalid left-hand side expression in postfix operation") \ |
334 T(InvalidLhsInPrefixOp, \ | 336 T(InvalidLhsInPrefixOp, \ |
335 "Invalid left-hand side expression in prefix operation") \ | 337 "Invalid left-hand side expression in prefix operation") \ |
336 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 338 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
337 T(LabelRedeclaration, "Label '%' has already been declared") \ | 339 T(LabelRedeclaration, "Label '%' has already been declared") \ |
338 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 340 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
339 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 341 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
340 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 342 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
341 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 343 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
342 T(MultipleDefaultsInSwitch, \ | 344 T(MultipleDefaultsInSwitch, \ |
343 "More than one default clause in switch statement") \ | 345 "More than one default clause in switch statement") \ |
344 T(NewlineAfterThrow, "Illegal newline after throw") \ | 346 T(NewlineAfterThrow, "Illegal newline after throw") \ |
345 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 347 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
346 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 348 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
347 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 349 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
348 T(PushPastSafeLength, \ | 350 T(PushPastSafeLength, \ |
349 "Pushing % elements on an array-like of length % " \ | 351 "Pushing % elements on an array-like of length % " \ |
350 "is disallowed, as the total surpasses 2**53-1") \ | 352 "is disallowed, as the total surpasses 2**53-1") \ |
| 353 T(ElementAfterRest, "Rest element must be last element in array") \ |
351 T(BadSetterRestParameter, \ | 354 T(BadSetterRestParameter, \ |
352 "Setter function argument must not be a rest parameter") \ | 355 "Setter function argument must not be a rest parameter") \ |
353 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 356 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
354 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ | 357 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
355 T(SingleFunctionLiteral, "Single function literal required") \ | 358 T(SingleFunctionLiteral, "Single function literal required") \ |
356 T(SloppyLexical, \ | 359 T(SloppyLexical, \ |
357 "Block-scoped declarations (let, const, function, class) not yet " \ | 360 "Block-scoped declarations (let, const, function, class) not yet " \ |
358 "supported outside strict mode") \ | 361 "supported outside strict mode") \ |
359 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 362 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
360 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 363 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 519 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
517 Isolate* isolate, LookupIterator* property_lookup, | 520 Isolate* isolate, LookupIterator* property_lookup, |
518 Handle<String> default_value); | 521 Handle<String> default_value); |
519 | 522 |
520 List<Handle<JSObject> > visited_; | 523 List<Handle<JSObject> > visited_; |
521 }; | 524 }; |
522 } // namespace internal | 525 } // namespace internal |
523 } // namespace v8 | 526 } // namespace v8 |
524 | 527 |
525 #endif // V8_MESSAGES_H_ | 528 #endif // V8_MESSAGES_H_ |
OLD | NEW |