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

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: What "git cl format" produces Created 6 years, 5 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/flag-definitions.h ('k') | src/parser.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"],
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 accessor_data_property: ["Object literal may not have data and accessor property with the same name"], 150 accessor_data_property: ["Object literal may not have data and accessor property with the same name"],
151 accessor_get_set: ["Object literal may not have multiple get/set accessors with the same name"], 151 accessor_get_set: ["Object literal may not have multiple get/set accessors with the same name"],
152 strict_delete: ["Delete of an unqualified identifier in strict mode."], 152 strict_delete: ["Delete of an unqualified identifier in strict mode."],
153 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "], 153 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "],
154 strict_const: ["Use of const in strict mode."], 154 strict_const: ["Use of const in strict mode."],
155 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], 155 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ],
156 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"], 156 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"],
157 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"], 157 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"],
158 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie s may not be accessed on strict mode functions or the arguments objects for call s to them"], 158 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie s may not be accessed on strict mode functions or the arguments objects for call s to them"],
159 strict_caller: ["Illegal access to a strict mode caller functi on."], 159 strict_caller: ["Illegal access to a strict mode caller functi on."],
160 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
160 generator_poison_pill: ["'caller' and 'arguments' properties may not b e accessed on generator functions."], 161 generator_poison_pill: ["'caller' and 'arguments' properties may not b e accessed on generator functions."],
161 unprotected_let: ["Illegal let declaration in unprotected statem ent context."], 162 unprotected_let: ["Illegal let declaration in unprotected statem ent context."],
162 unprotected_const: ["Illegal const declaration in unprotected stat ement context."], 163 unprotected_const: ["Illegal const declaration in unprotected stat ement context."],
163 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 164 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
164 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 165 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
165 harmony_const_assign: ["Assignment to constant variable."], 166 harmony_const_assign: ["Assignment to constant variable."],
166 symbol_to_string: ["Cannot convert a Symbol value to a string"], 167 symbol_to_string: ["Cannot convert a Symbol value to a string"],
167 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"], 168 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
168 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 169 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
169 module_type_error: ["Module '", "%0", "' used improperly"], 170 module_type_error: ["Module '", "%0", "' used improperly"],
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 function SetUpStackOverflowBoilerplate() { 1283 function SetUpStackOverflowBoilerplate() {
1283 var boilerplate = MakeRangeError('stack_overflow', []); 1284 var boilerplate = MakeRangeError('stack_overflow', []);
1284 1285
1285 %DefineAccessorPropertyUnchecked( 1286 %DefineAccessorPropertyUnchecked(
1286 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1287 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1287 1288
1288 return boilerplate; 1289 return boilerplate;
1289 } 1290 }
1290 1291
1291 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1292 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698