HEX
Server: Apache
System: Linux vps52061 6.8.0-85-generic #85~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 16:18:59 UTC 2 x86_64
User: design11 (105868)
PHP: 8.4.14
Disabled: NONE
Upload Files
File: //usr/share/nodejs/make-generator-function/index.js
'use strict';

module.exports = function getGeneratorFunctions() {
	var generatorFuncs = [];
	try {
		generatorFuncs.push(Function('return function* () { var x = yield; return x || 42; }')());
	} catch (e) {}
	try {
		generatorFuncs.push(Function('return function* gen() { var x = yield; return x || 42; }')());
	} catch (e) {}
	try {
		generatorFuncs.push(Function('return { *       concise(  ){ var x = yield; return x || 42; } }.concise;')());
	} catch (e) {}

	return generatorFuncs;
};