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

Side by Side Diff: src/messages.js

Issue 517058: Reverted 3551 from trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 11 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/v8natives.js » ('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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 duplicate_regexp_flag: "Duplicate RegExp flag %0", 171 duplicate_regexp_flag: "Duplicate RegExp flag %0",
172 invalid_regexp: "Invalid RegExp pattern /%0/", 172 invalid_regexp: "Invalid RegExp pattern /%0/",
173 illegal_break: "Illegal break statement", 173 illegal_break: "Illegal break statement",
174 illegal_continue: "Illegal continue statement", 174 illegal_continue: "Illegal continue statement",
175 illegal_return: "Illegal return statement", 175 illegal_return: "Illegal return statement",
176 error_loading_debugger: "Error loading debugger", 176 error_loading_debugger: "Error loading debugger",
177 no_input_to_regexp: "No input to %0", 177 no_input_to_regexp: "No input to %0",
178 result_not_primitive: "Result of %0 must be a primitive, was %1", 178 result_not_primitive: "Result of %0 must be a primitive, was %1",
179 invalid_json: "String '%0' is not valid JSON", 179 invalid_json: "String '%0' is not valid JSON",
180 circular_structure: "Converting circular structure to JSON", 180 circular_structure: "Converting circular structure to JSON",
181 object_keys_non_object: "Object.keys called on non-object", 181 object_keys_non_object: "Object.keys called on non-object"
182 object_get_prototype_non_object: "Object.getPrototypeOf called on non-obje ct"
183 }; 182 };
184 } 183 }
185 var format = kMessages[message.type]; 184 var format = kMessages[message.type];
186 if (!format) return "<unknown message " + message.type + ">"; 185 if (!format) return "<unknown message " + message.type + ">";
187 return FormatString(format, message.args); 186 return FormatString(format, message.args);
188 } 187 }
189 188
190 189
191 function GetLineNumber(message) { 190 function GetLineNumber(message) {
192 if (message.startPos == -1) return -1; 191 if (message.startPos == -1) return -1;
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } ); 926 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } );
928 } 927 }
929 var message = this.message; 928 var message = this.message;
930 return this.name + (message ? (": " + message) : ""); 929 return this.name + (message ? (": " + message) : "");
931 }, DONT_ENUM); 930 }, DONT_ENUM);
932 931
933 932
934 // Boilerplate for exceptions for stack overflows. Used from 933 // Boilerplate for exceptions for stack overflows. Used from
935 // Top::StackOverflow(). 934 // Top::StackOverflow().
936 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 935 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698