IFClite TypeScript API
    Preparing search index...

    Interface SourceWrapOptions

    interface SourceWrapOptions {
        entryFnName: string;
        filename?: string;
        preamble?: string;
    }
    Index
    entryFnName: string

    Name of the entry function to invoke (e.g. "activate").

    filename?: string

    Optional source identifier for error reporting.

    preamble?: string

    Optional sandbox-realm JS to run before the user source. The preamble executes inside the same IIFE as the user code, so any globalThis assignments persist for the read of __ifclite_ctx__ on the next line. Used by the test runner to inject synthetic fixtures whose methods can't cross the realm boundary via setGlobal.