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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 invalid_json: ["String '", "%0", "' is not valid JSON"], | 212 invalid_json: ["String '", "%0", "' is not valid JSON"], |
213 circular_structure: ["Converting circular structure to JSON"], | 213 circular_structure: ["Converting circular structure to JSON"], |
214 obj_ctor_property_non_object: ["Object.", "%0", " called on non-object"], | 214 obj_ctor_property_non_object: ["Object.", "%0", " called on non-object"], |
215 called_on_null_or_undefined: ["%0", " called on null or undefined"], | 215 called_on_null_or_undefined: ["%0", " called on null or undefined"], |
216 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], | 216 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], |
217 object_not_extensible: ["Can't add property ", "%0", ", object is n
ot extensible"], | 217 object_not_extensible: ["Can't add property ", "%0", ", object is n
ot extensible"], |
218 illegal_access: ["Illegal access"], | 218 illegal_access: ["Illegal access"], |
219 invalid_preparser_data: ["Invalid preparser data for function ", "%0
"], | 219 invalid_preparser_data: ["Invalid preparser data for function ", "%0
"], |
220 strict_mode_with: ["Strict mode code may not include a with st
atement"], | 220 strict_mode_with: ["Strict mode code may not include a with st
atement"], |
221 strict_catch_variable: ["Catch variable may not be eval or argument
s in strict mode"], | 221 strict_catch_variable: ["Catch variable may not be eval or argument
s in strict mode"], |
| 222 too_many_arguments: ["Too many arguments in function call (only
32766 allowed)"], |
222 too_many_parameters: ["Too many parameters in function definition
(only 32766 allowed)"], | 223 too_many_parameters: ["Too many parameters in function definition
(only 32766 allowed)"], |
223 too_many_variables: ["Too many variables declared (only 32767 al
lowed)"], | 224 too_many_variables: ["Too many variables declared (only 32767 al
lowed)"], |
224 strict_param_name: ["Parameter name eval or arguments is not al
lowed in strict mode"], | 225 strict_param_name: ["Parameter name eval or arguments is not al
lowed in strict mode"], |
225 strict_param_dupe: ["Strict mode function may not have duplicat
e parameter names"], | 226 strict_param_dupe: ["Strict mode function may not have duplicat
e parameter names"], |
226 strict_var_name: ["Variable name may not be eval or arguments
in strict mode"], | 227 strict_var_name: ["Variable name may not be eval or arguments
in strict mode"], |
227 strict_function_name: ["Function name may not be eval or arguments
in strict mode"], | 228 strict_function_name: ["Function name may not be eval or arguments
in strict mode"], |
228 strict_octal_literal: ["Octal literals are not allowed in strict m
ode."], | 229 strict_octal_literal: ["Octal literals are not allowed in strict m
ode."], |
229 strict_duplicate_property: ["Duplicate data property in object literal
not allowed in strict mode"], | 230 strict_duplicate_property: ["Duplicate data property in object literal
not allowed in strict mode"], |
230 accessor_data_property: ["Object literal may not have data and acces
sor property with the same name"], | 231 accessor_data_property: ["Object literal may not have data and acces
sor property with the same name"], |
231 accessor_get_set: ["Object literal may not have multiple get/s
et accessors with the same name"], | 232 accessor_get_set: ["Object literal may not have multiple get/s
et accessors with the same name"], |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 else throw e; | 1092 else throw e; |
1092 } | 1093 } |
1093 } | 1094 } |
1094 | 1095 |
1095 | 1096 |
1096 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); | 1097 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); |
1097 | 1098 |
1098 // Boilerplate for exceptions for stack overflows. Used from | 1099 // Boilerplate for exceptions for stack overflows. Used from |
1099 // Isolate::StackOverflow(). | 1100 // Isolate::StackOverflow(). |
1100 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1101 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
OLD | NEW |