Note : Les générateurs créés avec le constructeur GeneratorFunction ne créent pas de fermetures avec leurs contextes de sont toujours créés dans la portée globale.
Note: async functions created with the AsyncFunction constructor do not create closures to their creation contexts; they are always created in the global scope.
Le constructeur GeneratorFunction permet de créer un nouvel objet qui est une fonction génératrice.
Description Les fonctions génératrices créées avec le constructeur GeneratorFunction sont analysés lorsque la fonction est crée.
async function objects created with the AsyncFunction constructor are parsed when the function is created.
Note : Le constructeur GeneratorFunction ne doit pas être utilisé pour créer des fonctions. En effet, il utilise une chaîne pour former le corps de la fonction et cela peut empêcher certaines optimisations du moteur JavaScript ainsi que provoquer d'autres problèmes.
Note: Using the GeneratorFunction constructor to create functions is not recommended since it needs the function body as a string which may prevent some JS engine optimizations and can also cause other problems.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.
No results found for this meaning.
Synonyms and analogies of "constructeur generatorfunction" in French