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

Side by Side Diff: src/messages.h

Issue 1841543003: [esnext] implement frontend changes for async/await proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Uncomment that test Created 4 years, 7 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
« no previous file with comments | « src/globals.h ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ 351 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \
352 T(TypedArraySetNegativeOffset, "Start offset is negative") \ 352 T(TypedArraySetNegativeOffset, "Start offset is negative") \
353 T(TypedArraySetSourceTooLarge, "Source is too large") \ 353 T(TypedArraySetSourceTooLarge, "Source is too large") \
354 T(UnsupportedTimeZone, "Unsupported time zone specified %") \ 354 T(UnsupportedTimeZone, "Unsupported time zone specified %") \
355 T(ValueOutOfRange, "Value % out of range for % options property %") \ 355 T(ValueOutOfRange, "Value % out of range for % options property %") \
356 /* SyntaxError */ \ 356 /* SyntaxError */ \
357 T(BadGetterArity, "Getter must not have any formal parameters.") \ 357 T(BadGetterArity, "Getter must not have any formal parameters.") \
358 T(BadSetterArity, "Setter must have exactly one formal parameter.") \ 358 T(BadSetterArity, "Setter must have exactly one formal parameter.") \
359 T(ConstructorIsAccessor, "Class constructor may not be an accessor") \ 359 T(ConstructorIsAccessor, "Class constructor may not be an accessor") \
360 T(ConstructorIsGenerator, "Class constructor may not be a generator") \ 360 T(ConstructorIsGenerator, "Class constructor may not be a generator") \
361 T(ConstructorIsAsync, "Class constructor may not be an async method") \
361 T(DerivedConstructorReturn, \ 362 T(DerivedConstructorReturn, \
362 "Derived constructors may only return object or undefined") \ 363 "Derived constructors may only return object or undefined") \
363 T(DuplicateConstructor, "A class may only have one constructor") \ 364 T(DuplicateConstructor, "A class may only have one constructor") \
364 T(DuplicateExport, "Duplicate export of '%'") \ 365 T(DuplicateExport, "Duplicate export of '%'") \
365 T(DuplicateProto, \ 366 T(DuplicateProto, \
366 "Duplicate __proto__ fields are not allowed in object literals") \ 367 "Duplicate __proto__ fields are not allowed in object literals") \
367 T(ForInOfLoopInitializer, \ 368 T(ForInOfLoopInitializer, \
368 "% loop variable declaration may not have an initializer.") \ 369 "% loop variable declaration may not have an initializer.") \
369 T(ForInOfLoopMultiBindings, \ 370 T(ForInOfLoopMultiBindings, \
370 "Invalid left-hand side in % loop: Must have a single binding.") \ 371 "Invalid left-hand side in % loop: Must have a single binding.") \
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 426 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
426 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 427 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
427 T(StrictFunction, \ 428 T(StrictFunction, \
428 "In strict mode code, functions can only be declared at top level or " \ 429 "In strict mode code, functions can only be declared at top level or " \
429 "inside a block.") \ 430 "inside a block.") \
430 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ 431 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \
431 T(StrictWith, "Strict mode code may not include a with statement") \ 432 T(StrictWith, "Strict mode code may not include a with statement") \
432 T(TemplateOctalLiteral, \ 433 T(TemplateOctalLiteral, \
433 "Octal literals are not allowed in template strings.") \ 434 "Octal literals are not allowed in template strings.") \
434 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ 435 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
436 T(AwaitBindingIdentifier, \
437 "'await' is not a valid identifier name in an async function") \
438 T(AwaitExpressionFormalParameter, \
439 "Illegal await-expression in formal parameters of async function") \
435 T(TooManyArguments, \ 440 T(TooManyArguments, \
436 "Too many arguments in function call (only 65535 allowed)") \ 441 "Too many arguments in function call (only 65535 allowed)") \
437 T(TooManyParameters, \ 442 T(TooManyParameters, \
438 "Too many parameters in function definition (only 65535 allowed)") \ 443 "Too many parameters in function definition (only 65535 allowed)") \
439 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ 444 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
440 T(TypedArrayTooShort, \ 445 T(TypedArrayTooShort, \
441 "Derived TypedArray constructor created an array which was too small") \ 446 "Derived TypedArray constructor created an array which was too small") \
442 T(UnexpectedEOS, "Unexpected end of input") \ 447 T(UnexpectedEOS, "Unexpected end of input") \
443 T(UnexpectedFunctionSent, \ 448 T(UnexpectedFunctionSent, \
444 "function.sent expression is not allowed outside a generator") \ 449 "function.sent expression is not allowed outside a generator") \
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 530 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
526 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 531 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
527 Handle<Object> data); 532 Handle<Object> data);
528 }; 533 };
529 534
530 535
531 } // namespace internal 536 } // namespace internal
532 } // namespace v8 537 } // namespace v8
533 538
534 #endif // V8_MESSAGES_H_ 539 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698