| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 strict_mode_with: "Strict mode code may not include a with sta
tement", | 213 strict_mode_with: "Strict mode code may not include a with sta
tement", |
| 214 strict_catch_variable: "Catch variable may not be eval or arguments
in strict mode", | 214 strict_catch_variable: "Catch variable may not be eval or arguments
in strict mode", |
| 215 strict_param_name: "Parameter name eval or arguments is not all
owed in strict mode", | 215 strict_param_name: "Parameter name eval or arguments is not all
owed in strict mode", |
| 216 strict_param_dupe: "Strict mode function may not have duplicate
parameter names", | 216 strict_param_dupe: "Strict mode function may not have duplicate
parameter names", |
| 217 strict_var_name: "Variable name may not be eval or arguments
in strict mode", | 217 strict_var_name: "Variable name may not be eval or arguments
in strict mode", |
| 218 strict_function_name: "Function name may not be eval or arguments
in strict mode", | 218 strict_function_name: "Function name may not be eval or arguments
in strict mode", |
| 219 strict_octal_literal: "Octal literals are not allowed in strict mo
de.", | 219 strict_octal_literal: "Octal literals are not allowed in strict mo
de.", |
| 220 strict_duplicate_property: "Duplicate data property in object literal n
ot allowed in strict mode", | 220 strict_duplicate_property: "Duplicate data property in object literal n
ot allowed in strict mode", |
| 221 accessor_data_property: "Object literal may not have data and access
or property with the same name", | 221 accessor_data_property: "Object literal may not have data and access
or property with the same name", |
| 222 accessor_get_set: "Object literal may not have multiple get/se
t accessors with the same name", | 222 accessor_get_set: "Object literal may not have multiple get/se
t accessors with the same name", |
| 223 strict_lhs_eval_assignment: "Assignment to eval or arguments is not allo
wed in strict mode", | 223 strict_lhs_assignment: "Assignment to eval or arguments is not allo
wed in strict mode", |
| 224 strict_lhs_postfix: "Postfix increment/decrement may not have ev
al or arguments operand in strict mode", | 224 strict_lhs_postfix: "Postfix increment/decrement may not have ev
al or arguments operand in strict mode", |
| 225 strict_lhs_prefix: "Prefix increment/decrement may not have eva
l or arguments operand in strict mode", | 225 strict_lhs_prefix: "Prefix increment/decrement may not have eva
l or arguments operand in strict mode", |
| 226 }; | 226 }; |
| 227 } | 227 } |
| 228 var format = kMessages[message.type]; | 228 var format = kMessages[message.type]; |
| 229 if (!format) return "<unknown message " + message.type + ">"; | 229 if (!format) return "<unknown message " + message.type + ">"; |
| 230 return FormatString(format, message.args); | 230 return FormatString(format, message.args); |
| 231 } | 231 } |
| 232 | 232 |
| 233 | 233 |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 else throw e; | 1063 else throw e; |
| 1064 } | 1064 } |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 %FunctionSetName(errorToString, 'toString'); | 1067 %FunctionSetName(errorToString, 'toString'); |
| 1068 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM); | 1068 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM); |
| 1069 | 1069 |
| 1070 // Boilerplate for exceptions for stack overflows. Used from | 1070 // Boilerplate for exceptions for stack overflows. Used from |
| 1071 // Top::StackOverflow(). | 1071 // Top::StackOverflow(). |
| 1072 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1072 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
| OLD | NEW |