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

Side by Side Diff: src/messages.js

Issue 463040: Add Object.create from ECMAScript5. Supports value, writable, enumerable, ge... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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') | src/v8natives.js » ('J')
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 with_expression: "%0 has no properties", 150 with_expression: "%0 has no properties",
151 illegal_invocation: "Illegal invocation", 151 illegal_invocation: "Illegal invocation",
152 no_setter_in_callback: "Cannot set property %0 of %1 which has only a getter", 152 no_setter_in_callback: "Cannot set property %0 of %1 which has only a getter",
153 apply_non_function: "Function.prototype.apply was called on %0, which is a %1 and not a function", 153 apply_non_function: "Function.prototype.apply was called on %0, which is a %1 and not a function",
154 apply_wrong_args: "Function.prototype.apply: Arguments list ha s wrong type", 154 apply_wrong_args: "Function.prototype.apply: Arguments list ha s wrong type",
155 invalid_in_operator_use: "Cannot use 'in' operator to search for '%0' in %1", 155 invalid_in_operator_use: "Cannot use 'in' operator to search for '%0' in %1",
156 instanceof_function_expected: "Expecting a function in instanceof check, b ut got %0", 156 instanceof_function_expected: "Expecting a function in instanceof check, b ut got %0",
157 instanceof_nonobject_proto: "Function has non-object prototype '%0' in i nstanceof check", 157 instanceof_nonobject_proto: "Function has non-object prototype '%0' in i nstanceof check",
158 null_to_object: "Cannot convert null to object", 158 null_to_object: "Cannot convert null to object",
159 reduce_no_initial: "Reduce of empty array with no initial value ", 159 reduce_no_initial: "Reduce of empty array with no initial value ",
160 getter_must_be_callable: "Getter must be a function",
161 setter_must_be_callable: "Setter must be a function",
162 value_and_getter_setter: "Invalid property. 'value' present on prope rty with getter or setter",
163 proto_object_or_null: "Object prototype may only be an Object or n ull",
164 property_desc_object: "Property description must be an object",
160 // RangeError 165 // RangeError
161 invalid_array_length: "Invalid array length", 166 invalid_array_length: "Invalid array length",
162 stack_overflow: "Maximum call stack size exceeded", 167 stack_overflow: "Maximum call stack size exceeded",
163 apply_overflow: "Function.prototype.apply cannot support %0 arguments", 168 apply_overflow: "Function.prototype.apply cannot support %0 arguments",
164 // SyntaxError 169 // SyntaxError
165 unable_to_parse: "Parse error", 170 unable_to_parse: "Parse error",
166 duplicate_regexp_flag: "Duplicate RegExp flag %0", 171 duplicate_regexp_flag: "Duplicate RegExp flag %0",
167 invalid_regexp: "Invalid RegExp pattern /%0/", 172 invalid_regexp: "Invalid RegExp pattern /%0/",
168 illegal_break: "Illegal break statement", 173 illegal_break: "Illegal break statement",
169 illegal_continue: "Illegal continue statement", 174 illegal_continue: "Illegal continue statement",
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } ); 926 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } );
922 } 927 }
923 var message = this.message; 928 var message = this.message;
924 return this.name + (message ? (": " + message) : ""); 929 return this.name + (message ? (": " + message) : "");
925 }, DONT_ENUM); 930 }, DONT_ENUM);
926 931
927 932
928 // Boilerplate for exceptions for stack overflows. Used from 933 // Boilerplate for exceptions for stack overflows. Used from
929 // Top::StackOverflow(). 934 // Top::StackOverflow().
930 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 935 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/v8natives.js » ('j') | src/v8natives.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698