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

Side by Side Diff: src/messages.h

Issue 1941823003: Properly disallow 'yield' in class expressions and arrow parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Better error message for yield in parameter 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 | « no previous file | src/parsing/parser.h » ('j') | src/parsing/parser-base.h » ('J')
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 T(ConstructorNotFunction, "Constructor % requires 'new'") \ 110 T(ConstructorNotFunction, "Constructor % requires 'new'") \
111 T(ConstructorNotReceiver, "The .constructor property is not an object") \ 111 T(ConstructorNotReceiver, "The .constructor property is not an object") \
112 T(CurrencyCode, "Currency code is required with currency style.") \ 112 T(CurrencyCode, "Currency code is required with currency style.") \
113 T(DataViewNotArrayBuffer, \ 113 T(DataViewNotArrayBuffer, \
114 "First argument to DataView constructor must be an ArrayBuffer") \ 114 "First argument to DataView constructor must be an ArrayBuffer") \
115 T(DateType, "this is not a Date object.") \ 115 T(DateType, "this is not a Date object.") \
116 T(DebuggerFrame, "Debugger: Invalid frame index.") \ 116 T(DebuggerFrame, "Debugger: Invalid frame index.") \
117 T(DebuggerType, "Debugger: Parameters have wrong types.") \ 117 T(DebuggerType, "Debugger: Parameters have wrong types.") \
118 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ 118 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \
119 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 119 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
120 T(DetachedOperation, \ 120 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \
121 "Cannot perform % on a detached ArrayBuffer") \
122 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ 121 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \
123 T(ExtendsValueGenerator, \ 122 T(ExtendsValueGenerator, \
124 "Class extends value % may not be a generator function") \ 123 "Class extends value % may not be a generator function") \
125 T(ExtendsValueNotFunction, \ 124 T(ExtendsValueNotFunction, \
126 "Class extends value % is not a function or null") \ 125 "Class extends value % is not a function or null") \
127 T(FirstArgumentNotRegExp, \ 126 T(FirstArgumentNotRegExp, \
128 "First argument to % must not be a regular expression") \ 127 "First argument to % must not be a regular expression") \
129 T(FunctionBind, "Bind must be called on a function") \ 128 T(FunctionBind, "Bind must be called on a function") \
130 T(GeneratorRunning, "Generator is already running") \ 129 T(GeneratorRunning, "Generator is already running") \
131 T(IllegalInvocation, "Illegal invocation") \ 130 T(IllegalInvocation, "Illegal invocation") \
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ 455 T(UnexpectedTokenRegExp, "Unexpected regular expression") \
457 T(UnknownLabel, "Undefined label '%'") \ 456 T(UnknownLabel, "Undefined label '%'") \
458 T(UnterminatedArgList, "missing ) after argument list") \ 457 T(UnterminatedArgList, "missing ) after argument list") \
459 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ 458 T(UnterminatedRegExp, "Invalid regular expression: missing /") \
460 T(UnterminatedTemplate, "Unterminated template literal") \ 459 T(UnterminatedTemplate, "Unterminated template literal") \
461 T(UnterminatedTemplateExpr, "Missing } in template expression") \ 460 T(UnterminatedTemplateExpr, "Missing } in template expression") \
462 T(FoundNonCallableHasInstance, "Found non-callable @@hasInstance") \ 461 T(FoundNonCallableHasInstance, "Found non-callable @@hasInstance") \
463 T(InvalidHexEscapeSequence, "Invalid hexadecimal escape sequence") \ 462 T(InvalidHexEscapeSequence, "Invalid hexadecimal escape sequence") \
464 T(InvalidUnicodeEscapeSequence, "Invalid Unicode escape sequence") \ 463 T(InvalidUnicodeEscapeSequence, "Invalid Unicode escape sequence") \
465 T(UndefinedUnicodeCodePoint, "Undefined Unicode code-point") \ 464 T(UndefinedUnicodeCodePoint, "Undefined Unicode code-point") \
465 T(YieldInParameter, "Yield expression not allowed in formal parameter") \
466 /* EvalError */ \ 466 /* EvalError */ \
467 T(CodeGenFromStrings, "%") \ 467 T(CodeGenFromStrings, "%") \
468 /* URIError */ \ 468 /* URIError */ \
469 T(URIMalformed, "URI malformed") \ 469 T(URIMalformed, "URI malformed") \
470 /* Wasm errors (currently Error) */ \ 470 /* Wasm errors (currently Error) */ \
471 T(WasmTrapUnreachable, "unreachable") \ 471 T(WasmTrapUnreachable, "unreachable") \
472 T(WasmTrapMemOutOfBounds, "memory access out of bounds") \ 472 T(WasmTrapMemOutOfBounds, "memory access out of bounds") \
473 T(WasmTrapDivByZero, "divide by zero") \ 473 T(WasmTrapDivByZero, "divide by zero") \
474 T(WasmTrapDivUnrepresentable, "divide result unrepresentable") \ 474 T(WasmTrapDivUnrepresentable, "divide result unrepresentable") \
475 T(WasmTrapRemByZero, "remainder by zero") \ 475 T(WasmTrapRemByZero, "remainder by zero") \
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 517 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
518 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 518 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
519 Handle<Object> data); 519 Handle<Object> data);
520 }; 520 };
521 521
522 522
523 } // namespace internal 523 } // namespace internal
524 } // namespace v8 524 } // namespace v8
525 525
526 #endif // V8_MESSAGES_H_ 526 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698