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

Side by Side Diff: src/messages.js

Issue 7860043: Merge r9213 into the 3.4 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.4/
Patch Set: Created 9 years, 3 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 | src/objects.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"], 241 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"],
242 strict_reserved_word: ["Use of future reserved word in strict mode "], 242 strict_reserved_word: ["Use of future reserved word in strict mode "],
243 strict_delete: ["Delete of an unqualified identifier in str ict mode."], 243 strict_delete: ["Delete of an unqualified identifier in str ict mode."],
244 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1"], 244 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1"],
245 strict_const: ["Use of const in strict mode."], 245 strict_const: ["Use of const in strict mode."],
246 strict_function: ["In strict mode code, functions can only be declared at top level or immediately within another function." ], 246 strict_function: ["In strict mode code, functions can only be declared at top level or immediately within another function." ],
247 strict_read_only_property: ["Cannot assign to read only property '", "% 0", "' of ", "%1"], 247 strict_read_only_property: ["Cannot assign to read only property '", "% 0", "' of ", "%1"],
248 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in strict mode"], 248 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in strict mode"],
249 strict_poison_pill: ["'caller', 'callee', and 'arguments' proper ties may not be accessed on strict mode functions or the arguments objects for c alls to them"], 249 strict_poison_pill: ["'caller', 'callee', and 'arguments' proper ties may not be accessed on strict mode functions or the arguments objects for c alls to them"],
250 strict_caller: ["Illegal access to a strict mode caller fun ction."], 250 strict_caller: ["Illegal access to a strict mode caller fun ction."],
251 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an object with external array elements"],
252 redef_external_array_element: ["Cannot redefine a property of an object"]
251 }; 253 };
252 } 254 }
253 var message_type = %MessageGetType(message); 255 var message_type = %MessageGetType(message);
254 var format = kMessages[message_type]; 256 var format = kMessages[message_type];
255 if (!format) return "<unknown message " + message_type + ">"; 257 if (!format) return "<unknown message " + message_type + ">";
256 return FormatString(format, message); 258 return FormatString(format, message);
257 } 259 }
258 260
259 261
260 function GetLineNumber(message) { 262 function GetLineNumber(message) {
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 throw e; 1140 throw e;
1139 } 1141 }
1140 } 1142 }
1141 1143
1142 1144
1143 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); 1145 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]);
1144 1146
1145 // Boilerplate for exceptions for stack overflows. Used from 1147 // Boilerplate for exceptions for stack overflows. Used from
1146 // Isolate::StackOverflow(). 1148 // Isolate::StackOverflow().
1147 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1149 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698