| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 15 matching lines...) Expand all Loading... |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 // ------------------------------------------------------------------- | 28 // ------------------------------------------------------------------- |
| 29 | 29 |
| 30 var kMessages = { | 30 var kMessages = { |
| 31 // Error | 31 // Error |
| 32 cyclic_proto: ["Cyclic __proto__ value"], | 32 cyclic_proto: ["Cyclic __proto__ value"], |
| 33 code_gen_from_strings: ["%0"], | 33 code_gen_from_strings: ["%0"], |
| 34 generator_running: ["Generator is already running"], | 34 generator_running: ["Generator is already running"], |
| 35 generator_finished: ["Generator has already finished"], | 35 generator_finished: ["Generator has already finished"], |
| 36 generator_start: ["Invalid argument for inital generator next me
thod call"], |
| 36 // TypeError | 37 // TypeError |
| 37 unexpected_token: ["Unexpected token ", "%0"], | 38 unexpected_token: ["Unexpected token ", "%0"], |
| 38 unexpected_token_number: ["Unexpected number"], | 39 unexpected_token_number: ["Unexpected number"], |
| 39 unexpected_token_string: ["Unexpected string"], | 40 unexpected_token_string: ["Unexpected string"], |
| 40 unexpected_token_identifier: ["Unexpected identifier"], | 41 unexpected_token_identifier: ["Unexpected identifier"], |
| 41 unexpected_reserved: ["Unexpected reserved word"], | 42 unexpected_reserved: ["Unexpected reserved word"], |
| 42 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], | 43 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], |
| 43 unexpected_eos: ["Unexpected end of input"], | 44 unexpected_eos: ["Unexpected end of input"], |
| 44 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ",
"%1"], | 45 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ",
"%1"], |
| 45 unterminated_regexp: ["Invalid regular expression: missing /"], | 46 unterminated_regexp: ["Invalid regular expression: missing /"], |
| (...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 %GetAndClearOverflowedStackTrace(this); | 1357 %GetAndClearOverflowedStackTrace(this); |
| 1357 }; | 1358 }; |
| 1358 | 1359 |
| 1359 %DefineOrRedefineAccessorProperty( | 1360 %DefineOrRedefineAccessorProperty( |
| 1360 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1361 boilerplate, 'stack', getter, setter, DONT_ENUM); |
| 1361 | 1362 |
| 1362 return boilerplate; | 1363 return boilerplate; |
| 1363 } | 1364 } |
| 1364 | 1365 |
| 1365 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1366 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
| OLD | NEW |