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