/** * Worker Prototype Hardening — outer-realm and inner-VM prototype freezing * to prevent dynamic constructor chain escapes (`fn['con'+'structor']`). */ import * as vm from 'node:vm'; /** * Neuters `.constructor` on all outer function prototypes so untrusted scripts * inside `vm` cannot traverse `fn['con'+'structor']` to reach the outer realm's * Function/AsyncFunction/GeneratorFunction constructors. */ export declare function hardenOuterFunctionPrototypes(): void; /** * Freezes built-in prototypes and neuters Function constructors inside the * VM context to prevent dynamic constructor chain escapes like: * `const c = 'con'+'structor'; Error()[c][c]('return process')()` */ export declare function freezeInnerVmContext(context: vm.Context): void; //# sourceMappingURL=prototype-hardening.d.ts.map