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 762083002: Fix nosnap build (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | no next file » | 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"], 175 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
176 symbol_to_number: ["Cannot convert a Symbol value to a number"], 176 symbol_to_number: ["Cannot convert a Symbol value to a number"],
177 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 177 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
178 module_type_error: ["Module '", "%0", "' used improperly"], 178 module_type_error: ["Module '", "%0", "' used improperly"],
179 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 179 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
180 unexpected_super: ["'super' keyword unexpected here"], 180 unexpected_super: ["'super' keyword unexpected here"],
181 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"], 181 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
182 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"], 182 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"],
183 duplicate_constructor: ["A class may only have one constructor"], 183 duplicate_constructor: ["A class may only have one constructor"],
184 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], 184 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"],
185 super_constructor_call: ["'super(...)' constructor call is currently on ly supported if it is the first statement of a constructor and its arguments do not access 'this'"],
186 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."] 185 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."]
187 }; 186 };
188 187
189 188
190 function FormatString(format, args) { 189 function FormatString(format, args) {
191 var result = ""; 190 var result = "";
192 var arg_num = 0; 191 var arg_num = 0;
193 for (var i = 0; i < format.length; i++) { 192 for (var i = 0; i < format.length; i++) {
194 var str = format[i]; 193 var str = format[i];
195 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) { 194 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) {
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 function SetUpStackOverflowBoilerplate() { 1316 function SetUpStackOverflowBoilerplate() {
1318 var boilerplate = MakeRangeError('stack_overflow', []); 1317 var boilerplate = MakeRangeError('stack_overflow', []);
1319 1318
1320 %DefineAccessorPropertyUnchecked( 1319 %DefineAccessorPropertyUnchecked(
1321 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1320 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1322 1321
1323 return boilerplate; 1322 return boilerplate;
1324 } 1323 }
1325 1324
1326 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1325 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698