| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ | 301 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ |
| 302 T(InvalidLhsInPostfixOp, \ | 302 T(InvalidLhsInPostfixOp, \ |
| 303 "Invalid left-hand side expression in postfix operation") \ | 303 "Invalid left-hand side expression in postfix operation") \ |
| 304 T(InvalidLhsInPrefixOp, \ | 304 T(InvalidLhsInPrefixOp, \ |
| 305 "Invalid left-hand side expression in prefix operation") \ | 305 "Invalid left-hand side expression in prefix operation") \ |
| 306 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 306 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
| 307 T(LabelRedeclaration, "Label '%' has already been declared") \ | 307 T(LabelRedeclaration, "Label '%' has already been declared") \ |
| 308 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 308 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
| 309 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 309 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
| 310 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 310 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
| 311 T(MissingArrow, \ | |
| 312 "Expected () to start arrow function, but got '%' instead of '=>'") \ | |
| 313 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 311 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
| 314 T(MultipleDefaultsInSwitch, \ | 312 T(MultipleDefaultsInSwitch, \ |
| 315 "More than one default clause in switch statement") \ | 313 "More than one default clause in switch statement") \ |
| 316 T(NewlineAfterThrow, "Illegal newline after throw") \ | 314 T(NewlineAfterThrow, "Illegal newline after throw") \ |
| 317 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 315 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
| 318 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 316 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
| 319 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 317 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
| 320 T(BadSetterRestParameter, \ | 318 T(BadSetterRestParameter, \ |
| 321 "Setter function argument must not be a rest parameter") \ | 319 "Setter function argument must not be a rest parameter") \ |
| 322 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 320 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 | 480 |
| 483 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 481 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
| 484 Isolate* isolate, LookupIterator* property_lookup, | 482 Isolate* isolate, LookupIterator* property_lookup, |
| 485 Handle<String> default_value); | 483 Handle<String> default_value); |
| 486 | 484 |
| 487 List<Handle<JSObject> > visited_; | 485 List<Handle<JSObject> > visited_; |
| 488 }; | 486 }; |
| 489 } } // namespace v8::internal | 487 } } // namespace v8::internal |
| 490 | 488 |
| 491 #endif // V8_MESSAGES_H_ | 489 #endif // V8_MESSAGES_H_ |
| OLD | NEW |