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

Side by Side Diff: src/messages.js

Issue 663683006: Implement ES6 Template Literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Prevent fall-through to template token handlers Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.h » ('j') | src/parser.cc » ('J')
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_special_method: ["Class constructor may not be an accessor"],
12 generator_running: ["Generator is already running"], 12 generator_running: ["Generator is already running"],
13 generator_finished: ["Generator has already finished"], 13 generator_finished: ["Generator has already finished"],
14 // TypeError 14 // TypeError
15 unexpected_token: ["Unexpected token ", "%0"], 15 unexpected_token: ["Unexpected token ", "%0"],
16 unexpected_token_number: ["Unexpected number"], 16 unexpected_token_number: ["Unexpected number"],
17 unexpected_token_string: ["Unexpected string"], 17 unexpected_token_string: ["Unexpected string"],
18 unexpected_token_identifier: ["Unexpected identifier"], 18 unexpected_token_identifier: ["Unexpected identifier"],
19 unexpected_reserved: ["Unexpected reserved word"], 19 unexpected_reserved: ["Unexpected reserved word"],
20 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], 20 unexpected_strict_reserved: ["Unexpected strict mode reserved word"],
21 unexpected_eos: ["Unexpected end of input"], 21 unexpected_eos: ["Unexpected end of input"],
22 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ", "%1"], 22 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ", "%1"],
23 unterminated_regexp: ["Invalid regular expression: missing /"], 23 unterminated_regexp: ["Invalid regular expression: missing /"],
24 unterminated_template: ["Invalid template literal: missing `"],
24 regexp_flags: ["Cannot supply flags when constructing one Reg Exp from another"], 25 regexp_flags: ["Cannot supply flags when constructing one Reg Exp from another"],
25 incompatible_method_receiver: ["Method ", "%0", " called on incompatible rece iver ", "%1"], 26 incompatible_method_receiver: ["Method ", "%0", " called on incompatible rece iver ", "%1"],
26 multiple_defaults_in_switch: ["More than one default clause in switch statem ent"], 27 multiple_defaults_in_switch: ["More than one default clause in switch statem ent"],
27 newline_after_throw: ["Illegal newline after throw"], 28 newline_after_throw: ["Illegal newline after throw"],
28 label_redeclaration: ["Label '", "%0", "' has already been declared" ], 29 label_redeclaration: ["Label '", "%0", "' has already been declared" ],
29 var_redeclaration: ["Identifier '", "%0", "' has already been decl ared"], 30 var_redeclaration: ["Identifier '", "%0", "' has already been decl ared"],
30 duplicate_template_property: ["Object template has duplicate property '", "% 0", "'"], 31 duplicate_template_property: ["Object template has duplicate property '", "% 0", "'"],
31 no_catch_or_finally: ["Missing catch or finally after try"], 32 no_catch_or_finally: ["Missing catch or finally after try"],
32 unknown_label: ["Undefined label '", "%0", "'"], 33 unknown_label: ["Undefined label '", "%0", "'"],
33 uncaught_exception: ["Uncaught ", "%0"], 34 uncaught_exception: ["Uncaught ", "%0"],
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 function SetUpStackOverflowBoilerplate() { 1303 function SetUpStackOverflowBoilerplate() {
1303 var boilerplate = MakeRangeError('stack_overflow', []); 1304 var boilerplate = MakeRangeError('stack_overflow', []);
1304 1305
1305 %DefineAccessorPropertyUnchecked( 1306 %DefineAccessorPropertyUnchecked(
1306 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1307 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1307 1308
1308 return boilerplate; 1309 return boilerplate;
1309 } 1310 }
1310 1311
1311 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1312 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698