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

Side by Side Diff: src/messages.js

Issue 1101543002: [es6] Class extends may not be a generator function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/runtime/runtime-classes.cc » ('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 constructor_is_generator: ["Class constructor may not be a generator"], 9 constructor_is_generator: ["Class constructor may not be a generator"],
10 constructor_is_accessor: ["Class constructor may not be an accessor"], 10 constructor_is_accessor: ["Class constructor may not be an accessor"],
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation is deprecated"], 148 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation is deprecated"],
149 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], 149 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"],
150 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], 150 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
151 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 151 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
152 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 152 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
153 const_assign: ["Assignment to constant variable."], 153 const_assign: ["Assignment to constant variable."],
154 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 154 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
155 duplicate_export: ["Duplicate export of '", "%0", "'"], 155 duplicate_export: ["Duplicate export of '", "%0", "'"],
156 unexpected_super: ["'super' keyword unexpected here"], 156 unexpected_super: ["'super' keyword unexpected here"],
157 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"], 157 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
158 extends_value_generator: ["Class extends value ", "%0", " may not be a g enerator function"],
158 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"], 159 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"],
159 duplicate_constructor: ["A class may only have one constructor"], 160 duplicate_constructor: ["A class may only have one constructor"],
160 super_constructor_call: ["A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Oth er forms are not yet supported."], 161 super_constructor_call: ["A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Oth er forms are not yet supported."],
161 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"], 162 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"],
162 param_after_rest: ["Rest parameter must be last formal parameter" ], 163 param_after_rest: ["Rest parameter must be last formal parameter" ],
163 constructor_noncallable: ["Class constructors cannot be invoked without 'new'"], 164 constructor_noncallable: ["Class constructors cannot be invoked without 'new'"],
164 array_not_subclassable: ["Subclassing Arrays is not currently supported ."], 165 array_not_subclassable: ["Subclassing Arrays is not currently supported ."],
165 for_in_loop_initializer: ["for-in loop variable declaration may not have an initializer."], 166 for_in_loop_initializer: ["for-in loop variable declaration may not have an initializer."],
166 for_of_loop_initializer: ["for-of loop variable declaration may not have an initializer."], 167 for_of_loop_initializer: ["for-of loop variable declaration may not have an initializer."],
167 for_inof_loop_multi_bindings: ["Invalid left-hand side in ", "%0", " loop: Mu st have a single binding."], 168 for_inof_loop_multi_bindings: ["Invalid left-hand side in ", "%0", " loop: Mu st have a single binding."],
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 function SetUpStackOverflowBoilerplate() { 1263 function SetUpStackOverflowBoilerplate() {
1263 var boilerplate = MakeRangeError(kStackOverflow); 1264 var boilerplate = MakeRangeError(kStackOverflow);
1264 1265
1265 %DefineAccessorPropertyUnchecked( 1266 %DefineAccessorPropertyUnchecked(
1266 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1267 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1267 1268
1268 return boilerplate; 1269 return boilerplate;
1269 } 1270 }
1270 1271
1271 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1272 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « no previous file | src/runtime/runtime-classes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698