MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / checkExecOptions

Function checkExecOptions

lib/exec.ts:56–66  ·  view source on GitHub ↗
(options: ExecutionOptions)

Source from the content-addressed store, hash-verified

54let stdbufPath: null | string = null;
55
56function checkExecOptions(options: ExecutionOptions) {
57 if (options.env) {
58 for (const key of Object.keys(options.env)) {
59 const value: any = options.env[key];
60 if (value !== undefined && typeof value !== 'string') {
61 logger.warn(`Found non-string in environment: ${key} of ${typeof value} : '${value}'`);
62 options.env[key] = value.toString();
63 }
64 }
65 }
66}
67
68function setupOnError(stream: Stream, name: string) {
69 if (stream === undefined) return;

Callers 2

sandboxFunction · 0.85
executeFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected