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

Side by Side Diff: src/messages.h

Issue 1704223002: Remove strong mode support from Scope and Variable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove test-parsing test Created 4 years, 10 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 "Invalid property descriptor. Cannot both specify accessors and a value " \ 327 "Invalid property descriptor. Cannot both specify accessors and a value " \
328 "or writable attribute, %") \ 328 "or writable attribute, %") \
329 T(VarRedeclaration, "Identifier '%' has already been declared") \ 329 T(VarRedeclaration, "Identifier '%' has already been declared") \
330 T(WrongArgs, "%: Arguments list has wrong type") \ 330 T(WrongArgs, "%: Arguments list has wrong type") \
331 /* ReferenceError */ \ 331 /* ReferenceError */ \
332 T(NonMethod, "'super' is referenced from non-method") \ 332 T(NonMethod, "'super' is referenced from non-method") \
333 T(NotDefined, "% is not defined") \ 333 T(NotDefined, "% is not defined") \
334 T(StrongSuperCallMissing, \ 334 T(StrongSuperCallMissing, \
335 "In strong mode, invoking the super constructor in a subclass is " \ 335 "In strong mode, invoking the super constructor in a subclass is " \
336 "required") \ 336 "required") \
337 T(StrongUnboundGlobal, \
338 "In strong mode, using an undeclared global variable '%' is not allowed") \
339 T(UnsupportedSuper, "Unsupported reference to 'super'") \ 337 T(UnsupportedSuper, "Unsupported reference to 'super'") \
340 /* RangeError */ \ 338 /* RangeError */ \
341 T(DateRange, "Provided date is not in valid range.") \ 339 T(DateRange, "Provided date is not in valid range.") \
342 T(ExpectedTimezoneID, \ 340 T(ExpectedTimezoneID, \
343 "Expected Area/Location(/Location)* for time zone, got %") \ 341 "Expected Area/Location(/Location)* for time zone, got %") \
344 T(ExpectedLocation, \ 342 T(ExpectedLocation, \
345 "Expected letters optionally connected with underscores or hyphens for " \ 343 "Expected letters optionally connected with underscores or hyphens for " \
346 "a location, got %") \ 344 "a location, got %") \
347 T(InvalidArrayBufferLength, "Invalid array buffer length") \ 345 T(InvalidArrayBufferLength, "Invalid array buffer length") \
348 T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \ 346 T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 "In strong mode, invoking the super constructor multiple times is " \ 478 "In strong mode, invoking the super constructor multiple times is " \
481 "deprecated") \ 479 "deprecated") \
482 T(StrongSuperCallMisplaced, \ 480 T(StrongSuperCallMisplaced, \
483 "In strong mode, the super constructor must be invoked before any " \ 481 "In strong mode, the super constructor must be invoked before any " \
484 "assignment to 'this'") \ 482 "assignment to 'this'") \
485 T(StrongSwitchFallthrough, \ 483 T(StrongSwitchFallthrough, \
486 "In strong mode, switch fall-through is deprecated, terminate each case " \ 484 "In strong mode, switch fall-through is deprecated, terminate each case " \
487 "with 'break', 'continue', 'return' or 'throw'") \ 485 "with 'break', 'continue', 'return' or 'throw'") \
488 T(StrongUndefined, \ 486 T(StrongUndefined, \
489 "In strong mode, binding or assigning to 'undefined' is deprecated") \ 487 "In strong mode, binding or assigning to 'undefined' is deprecated") \
490 T(StrongUseBeforeDeclaration, \
491 "In strong mode, declaring variable '%' before its use is required") \
492 T(StrongVar, \ 488 T(StrongVar, \
493 "In strong mode, 'var' is deprecated, use 'let' or 'const' instead") \ 489 "In strong mode, 'var' is deprecated, use 'let' or 'const' instead") \
494 T(TemplateOctalLiteral, \ 490 T(TemplateOctalLiteral, \
495 "Octal literals are not allowed in template strings.") \ 491 "Octal literals are not allowed in template strings.") \
496 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ 492 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
497 T(TooManyArguments, \ 493 T(TooManyArguments, \
498 "Too many arguments in function call (only 65535 allowed)") \ 494 "Too many arguments in function call (only 65535 allowed)") \
499 T(TooManyParameters, \ 495 T(TooManyParameters, \
500 "Too many parameters in function definition (only 65535 allowed)") \ 496 "Too many parameters in function definition (only 65535 allowed)") \
501 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ 497 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 560 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
565 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 561 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
566 Handle<Object> data); 562 Handle<Object> data);
567 }; 563 };
568 564
569 565
570 } // namespace internal 566 } // namespace internal
571 } // namespace v8 567 } // namespace v8
572 568
573 #endif // V8_MESSAGES_H_ 569 #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