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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 instanceof_nonobject_proto: ["Function has non-object prototype '", "%0"
, "' in instanceof check"], | 183 instanceof_nonobject_proto: ["Function has non-object prototype '", "%0"
, "' in instanceof check"], |
184 null_to_object: ["Cannot convert null to object"], | 184 null_to_object: ["Cannot convert null to object"], |
185 reduce_no_initial: ["Reduce of empty array with no initial valu
e"], | 185 reduce_no_initial: ["Reduce of empty array with no initial valu
e"], |
186 getter_must_be_callable: ["Getter must be a function: ", "%0"], | 186 getter_must_be_callable: ["Getter must be a function: ", "%0"], |
187 setter_must_be_callable: ["Setter must be a function: ", "%0"], | 187 setter_must_be_callable: ["Setter must be a function: ", "%0"], |
188 value_and_accessor: ["Invalid property. A property cannot both
have accessors and be writable or have a value: ", "%0"], | 188 value_and_accessor: ["Invalid property. A property cannot both
have accessors and be writable or have a value: ", "%0"], |
189 proto_object_or_null: ["Object prototype may only be an Object or
null"], | 189 proto_object_or_null: ["Object prototype may only be an Object or
null"], |
190 property_desc_object: ["Property description must be an object: ",
"%0"], | 190 property_desc_object: ["Property description must be an object: ",
"%0"], |
191 redefine_disallowed: ["Cannot redefine property: ", "%0"], | 191 redefine_disallowed: ["Cannot redefine property: ", "%0"], |
192 define_disallowed: ["Cannot define property, object is not exte
nsible: ", "%0"], | 192 define_disallowed: ["Cannot define property, object is not exte
nsible: ", "%0"], |
| 193 non_extensible_proto: ["%0", " is not extensible"], |
193 // RangeError | 194 // RangeError |
194 invalid_array_length: ["Invalid array length"], | 195 invalid_array_length: ["Invalid array length"], |
195 stack_overflow: ["Maximum call stack size exceeded"], | 196 stack_overflow: ["Maximum call stack size exceeded"], |
196 // SyntaxError | 197 // SyntaxError |
197 unable_to_parse: ["Parse error"], | 198 unable_to_parse: ["Parse error"], |
198 duplicate_regexp_flag: ["Duplicate RegExp flag ", "%0"], | 199 duplicate_regexp_flag: ["Duplicate RegExp flag ", "%0"], |
199 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], | 200 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], |
200 illegal_break: ["Illegal break statement"], | 201 illegal_break: ["Illegal break statement"], |
201 illegal_continue: ["Illegal continue statement"], | 202 illegal_continue: ["Illegal continue statement"], |
202 illegal_return: ["Illegal return statement"], | 203 illegal_return: ["Illegal return statement"], |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 else throw e; | 1082 else throw e; |
1082 } | 1083 } |
1083 } | 1084 } |
1084 | 1085 |
1085 | 1086 |
1086 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); | 1087 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); |
1087 | 1088 |
1088 // Boilerplate for exceptions for stack overflows. Used from | 1089 // Boilerplate for exceptions for stack overflows. Used from |
1089 // Isolate::StackOverflow(). | 1090 // Isolate::StackOverflow(). |
1090 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1091 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
OLD | NEW |