HEX
Server: Apache
System: Linux iad1-shared-e1-13 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: dh_x7ke6i (5503775)
PHP: 7.4.33
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;
};