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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 cyclic_proto: "Cyclic __proto__ value", | 120 cyclic_proto: "Cyclic __proto__ value", |
121 // TypeError | 121 // TypeError |
122 unexpected_token: "Unexpected token %0", | 122 unexpected_token: "Unexpected token %0", |
123 unexpected_token_number: "Unexpected number", | 123 unexpected_token_number: "Unexpected number", |
124 unexpected_token_string: "Unexpected string", | 124 unexpected_token_string: "Unexpected string", |
125 unexpected_token_identifier: "Unexpected identifier", | 125 unexpected_token_identifier: "Unexpected identifier", |
126 unexpected_eos: "Unexpected end of input", | 126 unexpected_eos: "Unexpected end of input", |
127 malformed_regexp: "Invalid regular expression: /%0/: %1", | 127 malformed_regexp: "Invalid regular expression: /%0/: %1", |
128 unterminated_regexp: "Invalid regular expression: missing /", | 128 unterminated_regexp: "Invalid regular expression: missing /", |
129 regexp_flags: "Cannot supply flags when constructing one R
egExp from another", | 129 regexp_flags: "Cannot supply flags when constructing one R
egExp from another", |
| 130 incompatible_method_receiver: "Method %0 called on incompatible receiver %
1", |
130 invalid_lhs_in_assignment: "Invalid left-hand side in assignment", | 131 invalid_lhs_in_assignment: "Invalid left-hand side in assignment", |
131 invalid_lhs_in_for_in: "Invalid left-hand side in for-in", | 132 invalid_lhs_in_for_in: "Invalid left-hand side in for-in", |
132 invalid_lhs_in_postfix_op: "Invalid left-hand side expression in postfi
x operation", | 133 invalid_lhs_in_postfix_op: "Invalid left-hand side expression in postfi
x operation", |
133 invalid_lhs_in_prefix_op: "Invalid left-hand side expression in prefix
operation", | 134 invalid_lhs_in_prefix_op: "Invalid left-hand side expression in prefix
operation", |
134 multiple_defaults_in_switch: "More than one default clause in switch stat
ement", | 135 multiple_defaults_in_switch: "More than one default clause in switch stat
ement", |
135 newline_after_throw: "Illegal newline after throw", | 136 newline_after_throw: "Illegal newline after throw", |
136 redeclaration: "%0 '%1' has already been declared", | 137 redeclaration: "%0 '%1' has already been declared", |
137 no_catch_or_finally: "Missing catch or finally after try", | 138 no_catch_or_finally: "Missing catch or finally after try", |
138 unknown_label: "Undefined label '%0'", | 139 unknown_label: "Undefined label '%0'", |
139 uncaught_exception: "Uncaught %0", | 140 uncaught_exception: "Uncaught %0", |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); | 930 return this.name + ": " + FormatMessage({ type: type, args: this.arguments }
); |
930 } | 931 } |
931 var message = this.message; | 932 var message = this.message; |
932 return this.name + (message ? (": " + message) : ""); | 933 return this.name + (message ? (": " + message) : ""); |
933 }, DONT_ENUM); | 934 }, DONT_ENUM); |
934 | 935 |
935 | 936 |
936 // Boilerplate for exceptions for stack overflows. Used from | 937 // Boilerplate for exceptions for stack overflows. Used from |
937 // Top::StackOverflow(). | 938 // Top::StackOverflow(). |
938 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 939 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
OLD | NEW |