OLD | NEW |
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 getter_must_be_callable: "Getter must be a function: %0", | 174 getter_must_be_callable: "Getter must be a function: %0", |
175 setter_must_be_callable: "Setter must be a function: %0", | 175 setter_must_be_callable: "Setter must be a function: %0", |
176 value_and_accessor: "Invalid property. A property cannot both h
ave accessors and be writable or have a value: %0", | 176 value_and_accessor: "Invalid property. A property cannot both h
ave accessors and be writable or have a value: %0", |
177 proto_object_or_null: "Object prototype may only be an Object or n
ull", | 177 proto_object_or_null: "Object prototype may only be an Object or n
ull", |
178 property_desc_object: "Property description must be an object: %0"
, | 178 property_desc_object: "Property description must be an object: %0"
, |
179 redefine_disallowed: "Cannot redefine property: %0", | 179 redefine_disallowed: "Cannot redefine property: %0", |
180 define_disallowed: "Cannot define property, object is not exten
sible: %0", | 180 define_disallowed: "Cannot define property, object is not exten
sible: %0", |
181 // RangeError | 181 // RangeError |
182 invalid_array_length: "Invalid array length", | 182 invalid_array_length: "Invalid array length", |
183 stack_overflow: "Maximum call stack size exceeded", | 183 stack_overflow: "Maximum call stack size exceeded", |
184 apply_overflow: "Function.prototype.apply cannot support %0
arguments", | |
185 // SyntaxError | 184 // SyntaxError |
186 unable_to_parse: "Parse error", | 185 unable_to_parse: "Parse error", |
187 duplicate_regexp_flag: "Duplicate RegExp flag %0", | 186 duplicate_regexp_flag: "Duplicate RegExp flag %0", |
188 invalid_regexp: "Invalid RegExp pattern /%0/", | 187 invalid_regexp: "Invalid RegExp pattern /%0/", |
189 illegal_break: "Illegal break statement", | 188 illegal_break: "Illegal break statement", |
190 illegal_continue: "Illegal continue statement", | 189 illegal_continue: "Illegal continue statement", |
191 illegal_return: "Illegal return statement", | 190 illegal_return: "Illegal return statement", |
192 error_loading_debugger: "Error loading debugger", | 191 error_loading_debugger: "Error loading debugger", |
193 no_input_to_regexp: "No input to %0", | 192 no_input_to_regexp: "No input to %0", |
194 result_not_primitive: "Result of %0 must be a primitive, was %1", | 193 result_not_primitive: "Result of %0 must be a primitive, was %1", |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); | 969 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); |
971 } | 970 } |
972 var message = this.message; | 971 var message = this.message; |
973 return this.name + (message ? (": " + message) : ""); | 972 return this.name + (message ? (": " + message) : ""); |
974 }, DONT_ENUM); | 973 }, DONT_ENUM); |
975 | 974 |
976 | 975 |
977 // Boilerplate for exceptions for stack overflows. Used from | 976 // Boilerplate for exceptions for stack overflows. Used from |
978 // Top::StackOverflow(). | 977 // Top::StackOverflow(). |
979 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 978 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
OLD | NEW |