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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 T(StrongEllision, \ | 366 T(StrongEllision, \ |
367 "In strong mode, arrays with holes are deprecated, use maps instead") \ | 367 "In strong mode, arrays with holes are deprecated, use maps instead") \ |
368 T(StrongEmpty, \ | 368 T(StrongEmpty, \ |
369 "In strong mode, empty sub-statements are deprecated, make them explicit " \ | 369 "In strong mode, empty sub-statements are deprecated, make them explicit " \ |
370 "with '{}' instead") \ | 370 "with '{}' instead") \ |
371 T(StrongEqual, \ | 371 T(StrongEqual, \ |
372 "In strong mode, '==' and '!=' are deprecated, use '===' and '!==' " \ | 372 "In strong mode, '==' and '!=' are deprecated, use '===' and '!==' " \ |
373 "instead") \ | 373 "instead") \ |
374 T(StrongForIn, \ | 374 T(StrongForIn, \ |
375 "In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead") \ | 375 "In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead") \ |
| 376 T(StrongPropertyAccess, \ |
| 377 "In strong mode, accessing missing property '%' of % is deprecated") \ |
376 T(StrongSuperCallDuplicate, \ | 378 T(StrongSuperCallDuplicate, \ |
377 "In strong mode, invoking the super constructor multiple times is " \ | 379 "In strong mode, invoking the super constructor multiple times is " \ |
378 "deprecated") \ | 380 "deprecated") \ |
379 T(StrongSuperCallMisplaced, \ | 381 T(StrongSuperCallMisplaced, \ |
380 "In strong mode, the super constructor must be invoked before any " \ | 382 "In strong mode, the super constructor must be invoked before any " \ |
381 "assignment to 'this'") \ | 383 "assignment to 'this'") \ |
382 T(StrongSwitchFallthrough, \ | 384 T(StrongSwitchFallthrough, \ |
383 "In strong mode, switch fall-through is deprecated, terminate each case " \ | 385 "In strong mode, switch fall-through is deprecated, terminate each case " \ |
384 "with 'break', 'continue', 'return' or 'throw'") \ | 386 "with 'break', 'continue', 'return' or 'throw'") \ |
385 T(StrongUndefined, \ | 387 T(StrongUndefined, \ |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 451 |
450 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 452 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
451 Handle<Object> message_obj); | 453 Handle<Object> message_obj); |
452 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 454 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
453 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 455 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
454 Handle<Object> data); | 456 Handle<Object> data); |
455 }; | 457 }; |
456 } } // namespace v8::internal | 458 } } // namespace v8::internal |
457 | 459 |
458 #endif // V8_MESSAGES_H_ | 460 #endif // V8_MESSAGES_H_ |
OLD | NEW |