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.js

Issue 160073006: Implement handling of arrow functions in the parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Extra parens in parameter lists now recognized, no longer segfaults on "()" Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.cc ('k') | src/objects.h » ('j') | src/parser.h » ('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"],
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 generator_poison_pill: ["'caller' and 'arguments' properties may not b e accessed on generator functions."], 155 generator_poison_pill: ["'caller' and 'arguments' properties may not b e accessed on generator functions."],
156 unprotected_let: ["Illegal let declaration in unprotected statem ent context."], 156 unprotected_let: ["Illegal let declaration in unprotected statem ent context."],
157 unprotected_const: ["Illegal const declaration in unprotected stat ement context."], 157 unprotected_const: ["Illegal const declaration in unprotected stat ement context."],
158 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 158 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
159 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 159 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
160 harmony_const_assign: ["Assignment to constant variable."], 160 harmony_const_assign: ["Assignment to constant variable."],
161 symbol_to_string: ["Cannot convert a Symbol value to a string"], 161 symbol_to_string: ["Cannot convert a Symbol value to a string"],
162 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"], 162 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
163 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 163 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
164 module_type_error: ["Module '", "%0", "' used improperly"], 164 module_type_error: ["Module '", "%0", "' used improperly"],
165 module_export_undefined: ["Export '", "%0", "' is not defined in module" ] 165 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
166 malformed_parameter_list: ["Function parameter list is malformed"]
166 }; 167 };
167 168
168 169
169 function FormatString(format, args) { 170 function FormatString(format, args) {
170 var result = ""; 171 var result = "";
171 var arg_num = 0; 172 var arg_num = 0;
172 for (var i = 0; i < format.length; i++) { 173 for (var i = 0; i < format.length; i++) {
173 var str = format[i]; 174 var str = format[i];
174 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) { 175 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) {
175 // Two-char string starts with "%". 176 // Two-char string starts with "%".
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 return result; 1335 return result;
1335 }; 1336 };
1336 1337
1337 %DefineOrRedefineAccessorProperty( 1338 %DefineOrRedefineAccessorProperty(
1338 boilerplate, 'stack', getter, setter, DONT_ENUM); 1339 boilerplate, 'stack', getter, setter, DONT_ENUM);
1339 1340
1340 return boilerplate; 1341 return boilerplate;
1341 } 1342 }
1342 1343
1343 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1344 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/objects.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698