| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 null_to_object: ["Cannot convert null to object"], | 185 null_to_object: ["Cannot convert null to object"], |
| 186 reduce_no_initial: ["Reduce of empty array with no initial valu
e"], | 186 reduce_no_initial: ["Reduce of empty array with no initial valu
e"], |
| 187 getter_must_be_callable: ["Getter must be a function: ", "%0"], | 187 getter_must_be_callable: ["Getter must be a function: ", "%0"], |
| 188 setter_must_be_callable: ["Setter must be a function: ", "%0"], | 188 setter_must_be_callable: ["Setter must be a function: ", "%0"], |
| 189 value_and_accessor: ["Invalid property. A property cannot both
have accessors and be writable or have a value: ", "%0"], | 189 value_and_accessor: ["Invalid property. A property cannot both
have accessors and be writable or have a value: ", "%0"], |
| 190 proto_object_or_null: ["Object prototype may only be an Object or
null"], | 190 proto_object_or_null: ["Object prototype may only be an Object or
null"], |
| 191 property_desc_object: ["Property description must be an object: ",
"%0"], | 191 property_desc_object: ["Property description must be an object: ",
"%0"], |
| 192 redefine_disallowed: ["Cannot redefine property: ", "%0"], | 192 redefine_disallowed: ["Cannot redefine property: ", "%0"], |
| 193 define_disallowed: ["Cannot define property, object is not exte
nsible: ", "%0"], | 193 define_disallowed: ["Cannot define property, object is not exte
nsible: ", "%0"], |
| 194 non_extensible_proto: ["%0", " is not extensible"], | 194 non_extensible_proto: ["%0", " is not extensible"], |
| 195 handler_trap_missing: ["Proxy handler ", "%0", " has no '", "%1",
"' trap"], |
| 195 // RangeError | 196 // RangeError |
| 196 invalid_array_length: ["Invalid array length"], | 197 invalid_array_length: ["Invalid array length"], |
| 197 stack_overflow: ["Maximum call stack size exceeded"], | 198 stack_overflow: ["Maximum call stack size exceeded"], |
| 198 // SyntaxError | 199 // SyntaxError |
| 199 unable_to_parse: ["Parse error"], | 200 unable_to_parse: ["Parse error"], |
| 200 duplicate_regexp_flag: ["Duplicate RegExp flag ", "%0"], | 201 duplicate_regexp_flag: ["Duplicate RegExp flag ", "%0"], |
| 201 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], | 202 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], |
| 202 illegal_break: ["Illegal break statement"], | 203 illegal_break: ["Illegal break statement"], |
| 203 illegal_continue: ["Illegal continue statement"], | 204 illegal_continue: ["Illegal continue statement"], |
| 204 illegal_return: ["Illegal return statement"], | 205 illegal_return: ["Illegal return statement"], |
| 205 error_loading_debugger: ["Error loading debugger"], | 206 error_loading_debugger: ["Error loading debugger"], |
| 206 no_input_to_regexp: ["No input to ", "%0"], | 207 no_input_to_regexp: ["No input to ", "%0"], |
| 207 invalid_json: ["String '", "%0", "' is not valid JSON"], | 208 invalid_json: ["String '", "%0", "' is not valid JSON"], |
| 208 circular_structure: ["Converting circular structure to JSON"], | 209 circular_structure: ["Converting circular structure to JSON"], |
| 209 obj_ctor_property_non_object: ["Object.", "%0", " called on non-object"], | 210 obj_ctor_property_non_object: ["Object.", "%0", " called on non-object"], |
| 210 called_on_null_or_undefined: ["%0", " called on null or undefined"], | 211 called_on_null_or_undefined: ["%0", " called on null or undefined"], |
| 211 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], | 212 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], |
| 212 object_not_extensible: ["Can't add property ", "%0", ", object is n
ot extensible"], | 213 object_not_extensible: ["Can't add property ", "%0", ", object is n
ot extensible"], |
| 213 illegal_access: ["Illegal access"], | 214 illegal_access: ["Illegal access"], |
| 214 invalid_preparser_data: ["Invalid preparser data for function ", "%0
"], | 215 invalid_preparser_data: ["Invalid preparser data for function ", "%0
"], |
| 215 strict_mode_with: ["Strict mode code may not include a with st
atement"], | 216 strict_mode_with: ["Strict mode code may not include a with st
atement"], |
| 216 strict_catch_variable: ["Catch variable may not be eval or argument
s in strict mode"], | 217 strict_catch_variable: ["Catch variable may not be eval or argument
s in strict mode"], |
| 217 too_many_parameters: ["Too many parameters in function definition
"], | 218 too_many_parameters: ["Too many parameters in function definition
(only 32766 allowed)"], |
| 219 too_many_variables: ["Too many variables declared (only 32767 al
lowed)"], |
| 218 strict_param_name: ["Parameter name eval or arguments is not al
lowed in strict mode"], | 220 strict_param_name: ["Parameter name eval or arguments is not al
lowed in strict mode"], |
| 219 strict_param_dupe: ["Strict mode function may not have duplicat
e parameter names"], | 221 strict_param_dupe: ["Strict mode function may not have duplicat
e parameter names"], |
| 220 strict_var_name: ["Variable name may not be eval or arguments
in strict mode"], | 222 strict_var_name: ["Variable name may not be eval or arguments
in strict mode"], |
| 221 strict_function_name: ["Function name may not be eval or arguments
in strict mode"], | 223 strict_function_name: ["Function name may not be eval or arguments
in strict mode"], |
| 222 strict_octal_literal: ["Octal literals are not allowed in strict m
ode."], | 224 strict_octal_literal: ["Octal literals are not allowed in strict m
ode."], |
| 223 strict_duplicate_property: ["Duplicate data property in object literal
not allowed in strict mode"], | 225 strict_duplicate_property: ["Duplicate data property in object literal
not allowed in strict mode"], |
| 224 accessor_data_property: ["Object literal may not have data and acces
sor property with the same name"], | 226 accessor_data_property: ["Object literal may not have data and acces
sor property with the same name"], |
| 225 accessor_get_set: ["Object literal may not have multiple get/s
et accessors with the same name"], | 227 accessor_get_set: ["Object literal may not have multiple get/s
et accessors with the same name"], |
| 226 strict_lhs_assignment: ["Assignment to eval or arguments is not all
owed in strict mode"], | 228 strict_lhs_assignment: ["Assignment to eval or arguments is not all
owed in strict mode"], |
| 227 strict_lhs_postfix: ["Postfix increment/decrement may not have e
val or arguments operand in strict mode"], | 229 strict_lhs_postfix: ["Postfix increment/decrement may not have e
val or arguments operand in strict mode"], |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 else throw e; | 1090 else throw e; |
| 1089 } | 1091 } |
| 1090 } | 1092 } |
| 1091 | 1093 |
| 1092 | 1094 |
| 1093 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); | 1095 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); |
| 1094 | 1096 |
| 1095 // Boilerplate for exceptions for stack overflows. Used from | 1097 // Boilerplate for exceptions for stack overflows. Used from |
| 1096 // Isolate::StackOverflow(). | 1098 // Isolate::StackOverflow(). |
| 1097 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1099 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
| OLD | NEW |