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

Side by Side Diff: src/messages.js

Issue 1027283004: [es6] do not add caller/arguments to ES6 function definitions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 8 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/factory.cc ('k') | test/mjsunit/es6/generators-poisoned-properties.js » ('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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 too_many_parameters: ["Too many parameters in function definition (o nly 65535 allowed)"], 155 too_many_parameters: ["Too many parameters in function definition (o nly 65535 allowed)"],
156 too_many_variables: ["Too many variables declared (only 4194303 all owed)"], 156 too_many_variables: ["Too many variables declared (only 4194303 all owed)"],
157 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"], 157 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"],
158 strict_octal_literal: ["Octal literals are not allowed in strict mode ."], 158 strict_octal_literal: ["Octal literals are not allowed in strict mode ."],
159 template_octal_literal: ["Octal literals are not allowed in template st rings."], 159 template_octal_literal: ["Octal literals are not allowed in template st rings."],
160 strict_delete: ["Delete of an unqualified identifier in strict mode."], 160 strict_delete: ["Delete of an unqualified identifier in strict mode."],
161 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "], 161 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "],
162 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], 162 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ],
163 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"], 163 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"],
164 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"], 164 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"],
165 restricted_function_properties: ["'caller' and 'arguments' are restricted func tion properties and cannot be accessed in this context."],
165 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"], 166 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"],
166 strict_caller: ["Illegal access to a strict mode caller functi on."], 167 strict_caller: ["Illegal access to a strict mode caller functi on."],
167 strong_ellision: ["In strong mode, arrays with holes are depreca ted, use maps instead"], 168 strong_ellision: ["In strong mode, arrays with holes are depreca ted, use maps instead"],
168 strong_arguments: ["In strong mode, 'arguments' is deprecated, us e '...args' instead"], 169 strong_arguments: ["In strong mode, 'arguments' is deprecated, us e '...args' instead"],
169 strong_equal: ["In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead"], 170 strong_equal: ["In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead"],
170 strong_delete: ["In strong mode, 'delete' is deprecated, use m aps or sets instead"], 171 strong_delete: ["In strong mode, 'delete' is deprecated, use m aps or sets instead"],
171 strong_var: ["In strong mode, 'var' is deprecated, use 'let ' or 'const' instead"], 172 strong_var: ["In strong mode, 'var' is deprecated, use 'let ' or 'const' instead"],
172 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat ed, use 'for'-'of' instead"], 173 strong_for_in: ["In strong mode, 'for'-'in' loops are deprecat ed, use 'for'-'of' instead"],
173 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"], 174 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"],
174 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"], 175 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"],
175 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"], 176 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"],
176 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"], 177 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"],
177 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"], 178 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"],
178 strong_super_call_nested: ["In strong mode, invoking the super constructo r nested inside another statement or expression is deprecated"], 179 strong_super_call_nested: ["In strong mode, invoking the super constructo r nested inside another statement or expression is deprecated"],
179 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"], 180 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"],
180 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation is deprecated"], 181 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation is deprecated"],
181 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], 182 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"],
182 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], 183 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
183 generator_poison_pill: ["'caller' and 'arguments' properties may not b e accessed on generator functions."],
184 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 184 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
185 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 185 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
186 const_assign: ["Assignment to constant variable."], 186 const_assign: ["Assignment to constant variable."],
187 symbol_to_string: ["Cannot convert a Symbol value to a string"], 187 symbol_to_string: ["Cannot convert a Symbol value to a string"],
188 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"], 188 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
189 symbol_to_number: ["Cannot convert a Symbol value to a number"], 189 symbol_to_number: ["Cannot convert a Symbol value to a number"],
190 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 190 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
191 duplicate_export: ["Duplicate export of '", "%0", "'"], 191 duplicate_export: ["Duplicate export of '", "%0", "'"],
192 unexpected_super: ["'super' keyword unexpected here"], 192 unexpected_super: ["'super' keyword unexpected here"],
193 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"], 193 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 function SetUpStackOverflowBoilerplate() { 1281 function SetUpStackOverflowBoilerplate() {
1282 var boilerplate = MakeRangeError('stack_overflow', []); 1282 var boilerplate = MakeRangeError('stack_overflow', []);
1283 1283
1284 %DefineAccessorPropertyUnchecked( 1284 %DefineAccessorPropertyUnchecked(
1285 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1285 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1286 1286
1287 return boilerplate; 1287 return boilerplate;
1288 } 1288 }
1289 1289
1290 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1290 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | test/mjsunit/es6/generators-poisoned-properties.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698