UNPKG

@sebastianwessel/quickjs

Version:

A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox

11 lines (10 loc) 369 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMaxTimeoutAmount = void 0; const getMaxTimeoutAmount = (runtimeOptions) => { if (!runtimeOptions.maxTimeoutCount || runtimeOptions.maxTimeoutCount <= 0) { return 10; } return runtimeOptions.maxTimeoutCount; }; exports.getMaxTimeoutAmount = getMaxTimeoutAmount;