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

Side by Side Diff: src/messages.js

Issue 6386050: Fix error message name. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
« 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 strict_mode_with: ["Strict mode code may not include a with st atement"], 215 strict_mode_with: ["Strict mode code may not include a with st atement"],
216 strict_catch_variable: ["Catch variable may not be eval or argument s in strict mode"], 216 strict_catch_variable: ["Catch variable may not be eval or argument s in strict mode"],
217 strict_param_name: ["Parameter name eval or arguments is not al lowed in strict mode"], 217 strict_param_name: ["Parameter name eval or arguments is not al lowed in strict mode"],
218 strict_param_dupe: ["Strict mode function may not have duplicat e parameter names"], 218 strict_param_dupe: ["Strict mode function may not have duplicat e parameter names"],
219 strict_var_name: ["Variable name may not be eval or arguments in strict mode"], 219 strict_var_name: ["Variable name may not be eval or arguments in strict mode"],
220 strict_function_name: ["Function name may not be eval or arguments in strict mode"], 220 strict_function_name: ["Function name may not be eval or arguments in strict mode"],
221 strict_octal_literal: ["Octal literals are not allowed in strict m ode."], 221 strict_octal_literal: ["Octal literals are not allowed in strict m ode."],
222 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"], 222 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"],
223 accessor_data_property: ["Object literal may not have data and acces sor property with the same name"], 223 accessor_data_property: ["Object literal may not have data and acces sor property with the same name"],
224 accessor_get_set: ["Object literal may not have multiple get/s et accessors with the same name"], 224 accessor_get_set: ["Object literal may not have multiple get/s et accessors with the same name"],
225 strict_lhs_eval_assignment: ["Assignment to eval or arguments is not all owed in strict mode"], 225 strict_lhs_assignment: ["Assignment to eval or arguments is not all owed in strict mode"],
226 strict_lhs_postfix: ["Postfix increment/decrement may not have e val or arguments operand in strict mode"], 226 strict_lhs_postfix: ["Postfix increment/decrement may not have e val or arguments operand in strict mode"],
227 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"], 227 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"],
228 }; 228 };
229 } 229 }
230 var format = kMessages[message.type]; 230 var format = kMessages[message.type];
231 if (!format) return "<unknown message " + message.type + ">"; 231 if (!format) return "<unknown message " + message.type + ">";
232 return FormatString(format, message.args); 232 return FormatString(format, message.args);
233 } 233 }
234 234
235 235
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 else throw e; 1067 else throw e;
1068 } 1068 }
1069 } 1069 }
1070 1070
1071 %FunctionSetName(errorToString, 'toString'); 1071 %FunctionSetName(errorToString, 'toString');
1072 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM); 1072 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM);
1073 1073
1074 // Boilerplate for exceptions for stack overflows. Used from 1074 // Boilerplate for exceptions for stack overflows. Used from
1075 // Top::StackOverflow(). 1075 // Top::StackOverflow().
1076 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1076 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
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