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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 "for-in loop variable declaration may not have an initializer.") \ | 290 "for-in loop variable declaration may not have an initializer.") \ |
291 T(ForInOfLoopMultiBindings, \ | 291 T(ForInOfLoopMultiBindings, \ |
292 "Invalid left-hand side in % loop: Must have a single binding.") \ | 292 "Invalid left-hand side in % loop: Must have a single binding.") \ |
293 T(ForOfLoopInitializer, \ | 293 T(ForOfLoopInitializer, \ |
294 "for-of loop variable declaration may not have an initializer.") \ | 294 "for-of loop variable declaration may not have an initializer.") \ |
295 T(IllegalAccess, "Illegal access") \ | 295 T(IllegalAccess, "Illegal access") \ |
296 T(IllegalBreak, "Illegal break statement") \ | 296 T(IllegalBreak, "Illegal break statement") \ |
297 T(IllegalContinue, "Illegal continue statement") \ | 297 T(IllegalContinue, "Illegal continue statement") \ |
298 T(IllegalReturn, "Illegal return statement") \ | 298 T(IllegalReturn, "Illegal return statement") \ |
299 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ | 299 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ |
| 300 T(InvalidDestructuringTarget, "Invalid destructuring target") \ |
300 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ | 301 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ |
301 T(InvalidLhsInPostfixOp, \ | 302 T(InvalidLhsInPostfixOp, \ |
302 "Invalid left-hand side expression in postfix operation") \ | 303 "Invalid left-hand side expression in postfix operation") \ |
303 T(InvalidLhsInPrefixOp, \ | 304 T(InvalidLhsInPrefixOp, \ |
304 "Invalid left-hand side expression in prefix operation") \ | 305 "Invalid left-hand side expression in prefix operation") \ |
305 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 306 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
306 T(LabelRedeclaration, "Label '%' has already been declared") \ | 307 T(LabelRedeclaration, "Label '%' has already been declared") \ |
307 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 308 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
308 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 309 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
309 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 310 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 481 |
481 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 482 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
482 Isolate* isolate, LookupIterator* property_lookup, | 483 Isolate* isolate, LookupIterator* property_lookup, |
483 Handle<String> default_value); | 484 Handle<String> default_value); |
484 | 485 |
485 List<Handle<JSObject> > visited_; | 486 List<Handle<JSObject> > visited_; |
486 }; | 487 }; |
487 } } // namespace v8::internal | 488 } } // namespace v8::internal |
488 | 489 |
489 #endif // V8_MESSAGES_H_ | 490 #endif // V8_MESSAGES_H_ |
OLD | NEW |