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

Side by Side Diff: src/messages.js

Issue 982153003: [parser] better error message for generator constructors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added message tests Created 5 years, 9 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/preparser.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 var kMessages = { 7 var kMessages = {
8 // Error 8 // Error
9 cyclic_proto: ["Cyclic __proto__ value"], 9 cyclic_proto: ["Cyclic __proto__ value"],
10 code_gen_from_strings: ["%0"], 10 code_gen_from_strings: ["%0"],
11 constructor_special_method: ["Class constructor may not be an accessor"], 11 constructor_is_generator: ["Class constructor may not be a generator"],
12 constructor_is_accessor: ["Class constructor may not be an accessor"],
12 // TypeError 13 // TypeError
13 generator_running: ["Generator is already running"], 14 generator_running: ["Generator is already running"],
14 unexpected_token: ["Unexpected token ", "%0"], 15 unexpected_token: ["Unexpected token ", "%0"],
15 unexpected_token_number: ["Unexpected number"], 16 unexpected_token_number: ["Unexpected number"],
16 unexpected_token_string: ["Unexpected string"], 17 unexpected_token_string: ["Unexpected string"],
17 unexpected_token_identifier: ["Unexpected identifier"], 18 unexpected_token_identifier: ["Unexpected identifier"],
18 unexpected_reserved: ["Unexpected reserved word"], 19 unexpected_reserved: ["Unexpected reserved word"],
19 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], 20 unexpected_strict_reserved: ["Unexpected strict mode reserved word"],
20 unexpected_eos: ["Unexpected end of input"], 21 unexpected_eos: ["Unexpected end of input"],
21 unexpected_template_string: ["Unexpected template string"], 22 unexpected_template_string: ["Unexpected template string"],
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 function SetUpStackOverflowBoilerplate() { 1323 function SetUpStackOverflowBoilerplate() {
1323 var boilerplate = MakeRangeError('stack_overflow', []); 1324 var boilerplate = MakeRangeError('stack_overflow', []);
1324 1325
1325 %DefineAccessorPropertyUnchecked( 1326 %DefineAccessorPropertyUnchecked(
1326 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1327 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1327 1328
1328 return boilerplate; 1329 return boilerplate;
1329 } 1330 }
1330 1331
1331 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1332 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « no previous file | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698