| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 invalid_in_operator_use: "Cannot use 'in' operator to search for '%0'
in %1", | 165 invalid_in_operator_use: "Cannot use 'in' operator to search for '%0'
in %1", |
| 166 instanceof_function_expected: "Expecting a function in instanceof check, b
ut got %0", | 166 instanceof_function_expected: "Expecting a function in instanceof check, b
ut got %0", |
| 167 instanceof_nonobject_proto: "Function has non-object prototype '%0' in i
nstanceof check", | 167 instanceof_nonobject_proto: "Function has non-object prototype '%0' in i
nstanceof check", |
| 168 null_to_object: "Cannot convert null to object", | 168 null_to_object: "Cannot convert null to object", |
| 169 reduce_no_initial: "Reduce of empty array with no initial value
", | 169 reduce_no_initial: "Reduce of empty array with no initial value
", |
| 170 getter_must_be_callable: "Getter must be a function: %0", | 170 getter_must_be_callable: "Getter must be a function: %0", |
| 171 setter_must_be_callable: "Setter must be a function: %0", | 171 setter_must_be_callable: "Setter must be a function: %0", |
| 172 value_and_accessor: "Invalid property. A property cannot both h
ave accessors and be writable or have a value: %0", | 172 value_and_accessor: "Invalid property. A property cannot both h
ave accessors and be writable or have a value: %0", |
| 173 proto_object_or_null: "Object prototype may only be an Object or n
ull", | 173 proto_object_or_null: "Object prototype may only be an Object or n
ull", |
| 174 property_desc_object: "Property description must be an object: %0"
, | 174 property_desc_object: "Property description must be an object: %0"
, |
| 175 redefine_disallowed: "Cannot redefine property: %0", |
| 176 define_disallowed: "Cannot define property, object is not exten
sible: %0", |
| 175 // RangeError | 177 // RangeError |
| 176 invalid_array_length: "Invalid array length", | 178 invalid_array_length: "Invalid array length", |
| 177 stack_overflow: "Maximum call stack size exceeded", | 179 stack_overflow: "Maximum call stack size exceeded", |
| 178 apply_overflow: "Function.prototype.apply cannot support %0
arguments", | 180 apply_overflow: "Function.prototype.apply cannot support %0
arguments", |
| 179 // SyntaxError | 181 // SyntaxError |
| 180 unable_to_parse: "Parse error", | 182 unable_to_parse: "Parse error", |
| 181 duplicate_regexp_flag: "Duplicate RegExp flag %0", | 183 duplicate_regexp_flag: "Duplicate RegExp flag %0", |
| 182 invalid_regexp: "Invalid RegExp pattern /%0/", | 184 invalid_regexp: "Invalid RegExp pattern /%0/", |
| 183 illegal_break: "Illegal break statement", | 185 illegal_break: "Illegal break statement", |
| 184 illegal_continue: "Illegal continue statement", | 186 illegal_continue: "Illegal continue statement", |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); | 939 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); |
| 938 } | 940 } |
| 939 var message = this.message; | 941 var message = this.message; |
| 940 return this.name + (message ? (": " + message) : ""); | 942 return this.name + (message ? (": " + message) : ""); |
| 941 }, DONT_ENUM); | 943 }, DONT_ENUM); |
| 942 | 944 |
| 943 | 945 |
| 944 // Boilerplate for exceptions for stack overflows. Used from | 946 // Boilerplate for exceptions for stack overflows. Used from |
| 945 // Top::StackOverflow(). | 947 // Top::StackOverflow(). |
| 946 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 948 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
| OLD | NEW |