{"json_modified": "2016-06-03T18:47:17.928454", "uuid": "5088f8a5-08f1-4c34-bd33-021455eafa79", "title": "Legacy generator function expression", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Legacy_generator_function", "tags": ["R\u00e9f\u00e9rence", "Reference", "Legacy Iterator", "JavaScript"], "translations": [{"uuid": "4120044a-321e-4fe2-90ee-2deea2f17063", "title": "Fonction g\u00e9n\u00e9ratrice historique", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Fonction_g%C3%A9n%C3%A9ratrice_historique", "tags": ["R\u00e9f\u00e9rence", "Reference", "Legacy Iterator", "JavaScript"], "summary": "Le mot-cl\u00e9 function
peut \u00eatre utilis\u00e9 afin de d\u00e9finir une fonction g\u00e9n\u00e9ratrice au sein d'une expression. Pour que la fonction soit consid\u00e9r\u00e9e comme g\u00e9n\u00e9ratrice, il faut que le corps de la fonction contiennent au moins une expression yield
.", "localization_tags": [], "locale": "fr", "last_edit": "2016-04-12T10:56:50", "review_tags": []}, {"uuid": "56cf7d02-4aba-4c8d-a5f2-76ad7db22d3c", "title": "Legacy generator function expression", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Legacy_generator_function", "tags": ["Legacy Iterator", "Reference", "JavaScript", "R\u00e9f\u00e9rence"], "summary": "function
\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u5f0f\u5185\u3067\u30ec\u30ac\u30b7\u30fc\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u95a2\u6570\u304c\u30ec\u30ac\u30b7\u30fc\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u3068\u306a\u308b\u305f\u3081\u306b\u3001\u95a2\u6570\u672c\u4f53\u306f\u5c11\u306a\u304f\u3068\u3082\u4e00\u3064\u306eyield
\u5f0f\u3092\u542b\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-06-05T00:58:15", "review_tags": ["editorial"]}, {"uuid": "32c09056-d3f5-4f55-b23f-a1d515efa48f", "title": "\u65e7\u5f0f\u751f\u6210\u5668\u51fd\u6570", "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Legacy_generator_function", "tags": ["\u751f\u6210\u5668\u51fd\u6570"], "summary": "function
\u5173\u952e\u5b57\u53ef\u4ee5\u7528\u4e8e\u5728\u8868\u8fbe\u5f0f\u4e2d\u5b9a\u4e49\u65e7\u5f0f\u7684\u751f\u6210\u5668\u51fd\u6570\u3002\u4e3a\u4f7f\u5b9a\u4e49\u7684\u51fd\u6570\u4e3a\u4e00\u4e2a\u65e7\u5f0f\u7684\u751f\u6210\u5668\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u7684\u51fd\u6570\u4f53\u4e2d\u9700\u8981\u81f3\u5c11\u5305\u542b\u4e00\u4e2a\u00a0yield
\u8868\u8fbe\u5f0f\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-06-03T18:47:10", "review_tags": ["editorial"]}], "modified": "2016-04-11T12:52:48", "label": "Legacy generator function expression", "localization_tags": [], "locale": "en-US", "id": 131753, "last_edit": "2016-04-11T12:52:43", "summary": "The function
keyword can be used to define a legacy generator function inside an expression. To make the function a legacy generator, the function body should contain at least one yield
expression.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Description", "title": "Description"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Operators/Legacy_generator_function", "review_tags": []}