| 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 19 matching lines...) Expand all Loading... |
| 30 no_catch_or_finally: ["Missing catch or finally after try"], | 30 no_catch_or_finally: ["Missing catch or finally after try"], |
| 31 unknown_label: ["Undefined label '", "%0", "'"], | 31 unknown_label: ["Undefined label '", "%0", "'"], |
| 32 uncaught_exception: ["Uncaught ", "%0"], | 32 uncaught_exception: ["Uncaught ", "%0"], |
| 33 stack_trace: ["Stack Trace:\n", "%0"], | 33 stack_trace: ["Stack Trace:\n", "%0"], |
| 34 called_non_callable: ["%0", " is not a function"], | 34 called_non_callable: ["%0", " is not a function"], |
| 35 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], | 35 undefined_method: ["Object ", "%1", " has no method '", "%0", "'"
], |
| 36 property_not_function: ["Property '", "%0", "' of object ", "%1", " is
not a function"], | 36 property_not_function: ["Property '", "%0", "' of object ", "%1", " is
not a function"], |
| 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_method: ["'super' is referenced from non-method"], |
| 41 unsupported_super: ["Unsupported reference to 'super'"], |
| 40 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, | 42 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"]
, |
| 41 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], | 43 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], |
| 42 with_expression: ["%0", " has no properties"], | 44 with_expression: ["%0", " has no properties"], |
| 43 illegal_invocation: ["Illegal invocation"], | 45 illegal_invocation: ["Illegal invocation"], |
| 44 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", "
which has only a getter"], | 46 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"], | 47 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"], | 48 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"], | 49 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"], | 50 toMethod_non_object: ["Function.prototype.toMethod: home object ", "
%0", " is not an object"], |
| 49 invalid_in_operator_use: ["Cannot use 'in' operator to search for '", "%
0", "' in ", "%1"], | 51 invalid_in_operator_use: ["Cannot use 'in' operator to search for '", "%
0", "' in ", "%1"], |
| (...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 function SetUpStackOverflowBoilerplate() { | 1289 function SetUpStackOverflowBoilerplate() { |
| 1288 var boilerplate = MakeRangeError('stack_overflow', []); | 1290 var boilerplate = MakeRangeError('stack_overflow', []); |
| 1289 | 1291 |
| 1290 %DefineAccessorPropertyUnchecked( | 1292 %DefineAccessorPropertyUnchecked( |
| 1291 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1293 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
| 1292 | 1294 |
| 1293 return boilerplate; | 1295 return boilerplate; |
| 1294 } | 1296 } |
| 1295 | 1297 |
| 1296 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1298 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
| OLD | NEW |