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

Side by Side Diff: src/messages.js

Issue 2819034: Add ES5 Object.isExtensible and Object.preventExtensions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « no previous file | 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 illegal_break: "Illegal break statement", 189 illegal_break: "Illegal break statement",
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 illegal_access: "illegal access" 200 illegal_access: "illegal access"
200 }; 201 };
201 } 202 }
202 var format = kMessages[message.type]; 203 var format = kMessages[message.type];
203 if (!format) return "<unknown message " + message.type + ">"; 204 if (!format) return "<unknown message " + message.type + ">";
204 return FormatString(format, message.args); 205 return FormatString(format, message.args);
205 } 206 }
206 207
207 208
208 function GetLineNumber(message) { 209 function GetLineNumber(message) {
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } ); 969 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } );
969 } 970 }
970 var message = this.message; 971 var message = this.message;
971 return this.name + (message ? (": " + message) : ""); 972 return this.name + (message ? (": " + message) : "");
972 }, DONT_ENUM); 973 }, DONT_ENUM);
973 974
974 975
975 // Boilerplate for exceptions for stack overflows. Used from 976 // Boilerplate for exceptions for stack overflows. Used from
976 // Top::StackOverflow(). 977 // Top::StackOverflow().
977 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 978 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698