| 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 '=>'") \ |
| 311 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 313 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
| 312 T(MultipleDefaultsInSwitch, \ | 314 T(MultipleDefaultsInSwitch, \ |
| 313 "More than one default clause in switch statement") \ | 315 "More than one default clause in switch statement") \ |
| 314 T(NewlineAfterThrow, "Illegal newline after throw") \ | 316 T(NewlineAfterThrow, "Illegal newline after throw") \ |
| 315 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 317 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
| 316 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 318 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
| 317 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 319 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
| 318 T(BadSetterRestParameter, \ | 320 T(BadSetterRestParameter, \ |
| 319 "Setter function argument must not be a rest parameter") \ | 321 "Setter function argument must not be a rest parameter") \ |
| 320 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 322 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 | 481 |
| 480 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 482 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
| 481 Isolate* isolate, LookupIterator* property_lookup, | 483 Isolate* isolate, LookupIterator* property_lookup, |
| 482 Handle<String> default_value); | 484 Handle<String> default_value); |
| 483 | 485 |
| 484 List<Handle<JSObject> > visited_; | 486 List<Handle<JSObject> > visited_; |
| 485 }; | 487 }; |
| 486 } } // namespace v8::internal | 488 } } // namespace v8::internal |
| 487 | 489 |
| 488 #endif // V8_MESSAGES_H_ | 490 #endif // V8_MESSAGES_H_ |
| OLD | NEW |