Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: src/messages.h

Issue 1620253003: Implement the function.sent proposal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 "Octal literals are not allowed in template strings.") \ 488 "Octal literals are not allowed in template strings.") \
489 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ 489 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
490 T(TooManyArguments, \ 490 T(TooManyArguments, \
491 "Too many arguments in function call (only 65535 allowed)") \ 491 "Too many arguments in function call (only 65535 allowed)") \
492 T(TooManyParameters, \ 492 T(TooManyParameters, \
493 "Too many parameters in function definition (only 65535 allowed)") \ 493 "Too many parameters in function definition (only 65535 allowed)") \
494 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ 494 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
495 T(TypedArrayTooShort, \ 495 T(TypedArrayTooShort, \
496 "Derived TypedArray constructor created an array which was too small") \ 496 "Derived TypedArray constructor created an array which was too small") \
497 T(UnexpectedEOS, "Unexpected end of input") \ 497 T(UnexpectedEOS, "Unexpected end of input") \
498 T(UnexpectedFunctionSent, "function.sent expression is not allowed here") \
rossberg 2016/01/22 14:13:06 "...not allowed outside a generator"
neis 2016/01/27 16:49:40 Done.
498 T(UnexpectedReserved, "Unexpected reserved word") \ 499 T(UnexpectedReserved, "Unexpected reserved word") \
499 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ 500 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \
500 T(UnexpectedSuper, "'super' keyword unexpected here") \ 501 T(UnexpectedSuper, "'super' keyword unexpected here") \
501 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ 502 T(UnexpectedNewTarget, "new.target expression is not allowed here") \
502 T(UnexpectedTemplateString, "Unexpected template string") \ 503 T(UnexpectedTemplateString, "Unexpected template string") \
503 T(UnexpectedToken, "Unexpected token %") \ 504 T(UnexpectedToken, "Unexpected token %") \
504 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ 505 T(UnexpectedTokenIdentifier, "Unexpected identifier") \
505 T(UnexpectedTokenNumber, "Unexpected number") \ 506 T(UnexpectedTokenNumber, "Unexpected number") \
506 T(UnexpectedTokenString, "Unexpected string") \ 507 T(UnexpectedTokenString, "Unexpected string") \
507 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ 508 T(UnexpectedTokenRegExp, "Unexpected regular expression") \
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 556 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
556 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 557 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
557 Handle<Object> data); 558 Handle<Object> data);
558 }; 559 };
559 560
560 561
561 } // namespace internal 562 } // namespace internal
562 } // namespace v8 563 } // namespace v8
563 564
564 #endif // V8_MESSAGES_H_ 565 #endif // V8_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698