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

Side by Side Diff: src/messages.js

Issue 2814050: Version 2.2.23... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 10 years, 5 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/macros.py ('k') | src/objects.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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 illegal_continue: "Illegal continue statement", 190 illegal_continue: "Illegal continue statement",
191 illegal_return: "Illegal return statement", 191 illegal_return: "Illegal return statement",
192 error_loading_debugger: "Error loading debugger", 192 error_loading_debugger: "Error loading debugger",
193 no_input_to_regexp: "No input to %0", 193 no_input_to_regexp: "No input to %0",
194 result_not_primitive: "Result of %0 must be a primitive, was %1", 194 result_not_primitive: "Result of %0 must be a primitive, was %1",
195 invalid_json: "String '%0' is not valid JSON", 195 invalid_json: "String '%0' is not valid JSON",
196 circular_structure: "Converting circular structure to JSON", 196 circular_structure: "Converting circular structure to JSON",
197 obj_ctor_property_non_object: "Object.%0 called on non-object", 197 obj_ctor_property_non_object: "Object.%0 called on non-object",
198 array_indexof_not_defined: "Array.getIndexOf: Argument undefined", 198 array_indexof_not_defined: "Array.getIndexOf: Argument undefined",
199 object_not_extensible: "Can't add property %0, object is not extens ible", 199 object_not_extensible: "Can't add property %0, object is not extens ible",
200 illegal_access: "illegal access" 200 illegal_access: "Illegal access",
201 invalid_preparser_data: "Invalid preparser data for function %0"
201 }; 202 };
202 } 203 }
203 var format = kMessages[message.type]; 204 var format = kMessages[message.type];
204 if (!format) return "<unknown message " + message.type + ">"; 205 if (!format) return "<unknown message " + message.type + ">";
205 return FormatString(format, message.args); 206 return FormatString(format, message.args);
206 } 207 }
207 208
208 209
209 function GetLineNumber(message) { 210 function GetLineNumber(message) {
210 if (message.startPos == -1) return kNoLineNumberInfo; 211 if (message.startPos == -1) return kNoLineNumberInfo;
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } ); 970 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } );
970 } 971 }
971 var message = this.message; 972 var message = this.message;
972 return this.name + (message ? (": " + message) : ""); 973 return this.name + (message ? (": " + message) : "");
973 }, DONT_ENUM); 974 }, DONT_ENUM);
974 975
975 976
976 // Boilerplate for exceptions for stack overflows. Used from 977 // Boilerplate for exceptions for stack overflows. Used from
977 // Top::StackOverflow(). 978 // Top::StackOverflow().
978 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 979 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698