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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 stack_overflow: "Maximum call stack size exceeded", | 183 stack_overflow: "Maximum call stack size exceeded", |
184 // SyntaxError | 184 // SyntaxError |
185 unable_to_parse: "Parse error", | 185 unable_to_parse: "Parse error", |
186 duplicate_regexp_flag: "Duplicate RegExp flag %0", | 186 duplicate_regexp_flag: "Duplicate RegExp flag %0", |
187 invalid_regexp: "Invalid RegExp pattern /%0/", | 187 invalid_regexp: "Invalid RegExp pattern /%0/", |
188 illegal_break: "Illegal break statement", | 188 illegal_break: "Illegal break statement", |
189 illegal_continue: "Illegal continue statement", | 189 illegal_continue: "Illegal continue statement", |
190 illegal_return: "Illegal return statement", | 190 illegal_return: "Illegal return statement", |
191 error_loading_debugger: "Error loading debugger", | 191 error_loading_debugger: "Error loading debugger", |
192 no_input_to_regexp: "No input to %0", | 192 no_input_to_regexp: "No input to %0", |
193 result_not_primitive: "Result of %0 must be a primitive, was %1", | |
194 invalid_json: "String '%0' is not valid JSON", | 193 invalid_json: "String '%0' is not valid JSON", |
195 circular_structure: "Converting circular structure to JSON", | 194 circular_structure: "Converting circular structure to JSON", |
196 obj_ctor_property_non_object: "Object.%0 called on non-object", | 195 obj_ctor_property_non_object: "Object.%0 called on non-object", |
197 array_indexof_not_defined: "Array.getIndexOf: Argument undefined", | 196 array_indexof_not_defined: "Array.getIndexOf: Argument undefined", |
198 object_not_extensible: "Can't add property %0, object is not extens
ible", | 197 object_not_extensible: "Can't add property %0, object is not extens
ible", |
199 illegal_access: "Illegal access", | 198 illegal_access: "Illegal access", |
200 invalid_preparser_data: "Invalid preparser data for function %0" | 199 invalid_preparser_data: "Invalid preparser data for function %0" |
201 }; | 200 }; |
202 } | 201 } |
203 var format = kMessages[message.type]; | 202 var format = kMessages[message.type]; |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); | 993 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); |
995 } | 994 } |
996 var message = this.message; | 995 var message = this.message; |
997 return this.name + (message ? (": " + message) : ""); | 996 return this.name + (message ? (": " + message) : ""); |
998 }, DONT_ENUM); | 997 }, DONT_ENUM); |
999 | 998 |
1000 | 999 |
1001 // Boilerplate for exceptions for stack overflows. Used from | 1000 // Boilerplate for exceptions for stack overflows. Used from |
1002 // Top::StackOverflow(). | 1001 // Top::StackOverflow(). |
1003 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1002 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
OLD | NEW |