OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // ------------------------------------------------------------------- | 5 // ------------------------------------------------------------------- |
6 | 6 |
7 var kMessages = { | 7 var kMessages = { |
8 // Error | 8 // Error |
9 cyclic_proto: ["Cyclic __proto__ value"], | 9 cyclic_proto: ["Cyclic __proto__ value"], |
10 code_gen_from_strings: ["%0"], | 10 code_gen_from_strings: ["%0"], |
(...skipping 26 matching lines...) Expand all Loading... |
37 cannot_convert_to_primitive: ["Cannot convert object to primitive value"], | 37 cannot_convert_to_primitive: ["Cannot convert object to primitive value"], |
38 not_constructor: ["%0", " is not a constructor"], | 38 not_constructor: ["%0", " is not a constructor"], |
39 not_defined: ["%0", " is not defined"], | 39 not_defined: ["%0", " is not defined"], |
40 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, | 40 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, |
41 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], | 41 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], |
42 with_expression: ["%0", " has no properties"], | 42 with_expression: ["%0", " has no properties"], |
43 illegal_invocation: ["Illegal invocation"], | 43 illegal_invocation: ["Illegal invocation"], |
44 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", "
which has only a getter"], | 44 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", "
which has only a getter"], |
45 apply_non_function: ["Function.prototype.apply was called on ", "%0
", ", which is a ", "%1", " and not a function"], | 45 apply_non_function: ["Function.prototype.apply was called on ", "%0
", ", which is a ", "%1", " and not a function"], |
46 apply_wrong_args: ["Function.prototype.apply: Arguments list has
wrong type"], | 46 apply_wrong_args: ["Function.prototype.apply: Arguments list has
wrong type"], |
| 47 toMethod_non_function: ["Function.prototype.toMethod was called on ",
"%0", ", which is a ", "%1", " and not a function"], |
| 48 toMethod_non_object: ["Function.prototype.toMethod: home object ", "
%0", " is not an object"], |
47 invalid_in_operator_use: ["Cannot use 'in' operator to search for '", "%
0", "' in ", "%1"], | 49 invalid_in_operator_use: ["Cannot use 'in' operator to search for '", "%
0", "' in ", "%1"], |
48 instanceof_function_expected: ["Expecting a function in instanceof check, but
got ", "%0"], | 50 instanceof_function_expected: ["Expecting a function in instanceof check, but
got ", "%0"], |
49 instanceof_nonobject_proto: ["Function has non-object prototype '", "%0", "
' in instanceof check"], | 51 instanceof_nonobject_proto: ["Function has non-object prototype '", "%0", "
' in instanceof check"], |
50 undefined_or_null_to_object: ["Cannot convert undefined or null to object"], | 52 undefined_or_null_to_object: ["Cannot convert undefined or null to object"], |
51 reduce_no_initial: ["Reduce of empty array with no initial value"]
, | 53 reduce_no_initial: ["Reduce of empty array with no initial value"]
, |
52 getter_must_be_callable: ["Getter must be a function: ", "%0"], | 54 getter_must_be_callable: ["Getter must be a function: ", "%0"], |
53 setter_must_be_callable: ["Setter must be a function: ", "%0"], | 55 setter_must_be_callable: ["Setter must be a function: ", "%0"], |
54 value_and_accessor: ["Invalid property. A property cannot both hav
e accessors and be writable or have a value, ", "%0"], | 56 value_and_accessor: ["Invalid property. A property cannot both hav
e accessors and be writable or have a value, ", "%0"], |
55 proto_object_or_null: ["Object prototype may only be an Object or nul
l: ", "%0"], | 57 proto_object_or_null: ["Object prototype may only be an Object or nul
l: ", "%0"], |
56 property_desc_object: ["Property description must be an object: ", "%
0"], | 58 property_desc_object: ["Property description must be an object: ", "%
0"], |
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 function SetUpStackOverflowBoilerplate() { | 1286 function SetUpStackOverflowBoilerplate() { |
1285 var boilerplate = MakeRangeError('stack_overflow', []); | 1287 var boilerplate = MakeRangeError('stack_overflow', []); |
1286 | 1288 |
1287 %DefineAccessorPropertyUnchecked( | 1289 %DefineAccessorPropertyUnchecked( |
1288 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1290 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1289 | 1291 |
1290 return boilerplate; | 1292 return boilerplate; |
1291 } | 1293 } |
1292 | 1294 |
1293 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1295 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |