Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/messages.js

Issue 139653003: Throw a TypeError when calling "next" method of a newly created generator with a value (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Revised Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 %GetAndClearOverflowedStackTrace(this); 1351 %GetAndClearOverflowedStackTrace(this);
1351 }; 1352 };
1352 1353
1353 %DefineOrRedefineAccessorProperty( 1354 %DefineOrRedefineAccessorProperty(
1354 boilerplate, 'stack', getter, setter, DONT_ENUM); 1355 boilerplate, 'stack', getter, setter, DONT_ENUM);
1355 1356
1356 return boilerplate; 1357 return boilerplate;
1357 } 1358 }
1358 1359
1359 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1360 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698