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

Side by Side Diff: src/messages.js

Issue 918373002: Strip Interface class of most of its logic, make it all about Module exports (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged to trunk Created 5 years, 10 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
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 strong_equal: ["Please don't use '==' or '!=' in strong mode, use '===' or '!==' instead"], 164 strong_equal: ["Please don't use '==' or '!=' in strong mode, use '===' or '!==' instead"],
165 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], 165 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
166 generator_poison_pill: ["'caller' and 'arguments' properties may not b e accessed on generator functions."], 166 generator_poison_pill: ["'caller' and 'arguments' properties may not b e accessed on generator functions."],
167 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 167 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
168 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 168 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
169 harmony_const_assign: ["Assignment to constant variable."], 169 harmony_const_assign: ["Assignment to constant variable."],
170 symbol_to_string: ["Cannot convert a Symbol value to a string"], 170 symbol_to_string: ["Cannot convert a Symbol value to a string"],
171 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"], 171 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
172 symbol_to_number: ["Cannot convert a Symbol value to a number"], 172 symbol_to_number: ["Cannot convert a Symbol value to a number"],
173 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 173 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
174 module_type_error: ["Module '", "%0", "' used improperly"],
175 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 174 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
176 unexpected_super: ["'super' keyword unexpected here"], 175 unexpected_super: ["'super' keyword unexpected here"],
177 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"], 176 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
178 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"], 177 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"],
179 duplicate_constructor: ["A class may only have one constructor"], 178 duplicate_constructor: ["A class may only have one constructor"],
180 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], 179 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"],
181 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."], 180 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."],
182 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"], 181 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"],
183 param_after_rest: ["Rest parameter must be last formal parameter" ], 182 param_after_rest: ["Rest parameter must be last formal parameter" ],
184 constructor_noncallable: ["Class constructors cannot be invoked without 'new'"] 183 constructor_noncallable: ["Class constructors cannot be invoked without 'new'"]
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 function SetUpStackOverflowBoilerplate() { 1314 function SetUpStackOverflowBoilerplate() {
1316 var boilerplate = MakeRangeError('stack_overflow', []); 1315 var boilerplate = MakeRangeError('stack_overflow', []);
1317 1316
1318 %DefineAccessorPropertyUnchecked( 1317 %DefineAccessorPropertyUnchecked(
1319 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1318 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1320 1319
1321 return boilerplate; 1320 return boilerplate;
1322 } 1321 }
1323 1322
1324 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1323 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« src/interface.cc ('K') | « src/interface.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698