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

Side by Side Diff: src/messages.js

Issue 7631020: Version 3.5.6. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 4 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 | « src/liveobjectlist.cc ('k') | src/mips/frames-mips.h » ('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 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"], 240 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"],
241 strict_reserved_word: ["Use of future reserved word in strict mode "], 241 strict_reserved_word: ["Use of future reserved word in strict mode "],
242 strict_delete: ["Delete of an unqualified identifier in str ict mode."], 242 strict_delete: ["Delete of an unqualified identifier in str ict mode."],
243 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1"], 243 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1"],
244 strict_const: ["Use of const in strict mode."], 244 strict_const: ["Use of const in strict mode."],
245 strict_function: ["In strict mode code, functions can only be declared at top level or immediately within another function." ], 245 strict_function: ["In strict mode code, functions can only be declared at top level or immediately within another function." ],
246 strict_read_only_property: ["Cannot assign to read only property '", "% 0", "' of ", "%1"], 246 strict_read_only_property: ["Cannot assign to read only property '", "% 0", "' of ", "%1"],
247 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in strict mode"], 247 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in strict mode"],
248 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"], 248 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_caller: ["Illegal access to a strict mode caller fun ction."], 249 strict_caller: ["Illegal access to a strict mode caller fun ction."],
250 unprotected_let: ["Illegal let declaration in unprotected sta tement context."],
250 }; 251 };
251 } 252 }
252 var message_type = %MessageGetType(message); 253 var message_type = %MessageGetType(message);
253 var format = kMessages[message_type]; 254 var format = kMessages[message_type];
254 if (!format) return "<unknown message " + message_type + ">"; 255 if (!format) return "<unknown message " + message_type + ">";
255 return FormatString(format, message); 256 return FormatString(format, message);
256 } 257 }
257 258
258 259
259 function GetLineNumber(message) { 260 function GetLineNumber(message) {
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 else throw e; 1121 else throw e;
1121 } 1122 }
1122 } 1123 }
1123 1124
1124 1125
1125 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); 1126 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]);
1126 1127
1127 // Boilerplate for exceptions for stack overflows. Used from 1128 // Boilerplate for exceptions for stack overflows. Used from
1128 // Isolate::StackOverflow(). 1129 // Isolate::StackOverflow().
1129 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1130 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « src/liveobjectlist.cc ('k') | src/mips/frames-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698