UNPKG

@sebastianwessel/quickjs

Version:

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

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