Skip to content
1 min read · 50 words

Variable: E_ISOLATE_FUNCTION_UNSERIALIZABLE

ts
const E_ISOLATE_FUNCTION_UNSERIALIZABLE: CreatedException<[string]>;

Defined in: src/batteries/isolation/isolate_function.ts:87

Thrown when the function passed to isolateFunction cannot be serialized — @nhtio/encoder/function_serializer's FunctionSerializer.canSerialize rejects native functions (fn.toString() containing [native code]) and bound functions (which stringify the same way). Fatal: detected before any Worker is spawned; there is no fallback representation to fall back to.