// The downlevel-capable hook set: strip.zena's seam onto engine/downlevel.zena. Copied to // engine/hooks.zena by scripts/build.sh before compiling build/downlevel.wasm. // See engine/hooks-erase.zena for the erase-build counterpart and why the swap, not a // runtime `mode` flag, is what gets downlevel.zena out of build/erase.wasm. import { init as hInit, enumStart as hEnumStart, enumStep as hEnumStep, namespaceStart as hNamespaceStart, namespaceEnd as hNamespaceEnd, exportModifier as hExportModifier, dropPending as hDropPending, hookSp as hHookSp, blockHook as hBlockHook, functionHead as hFunctionHead, className as hClassName, varFlags as hVarFlags, declNames as hDeclNames, importEquals as hImportEquals, exportAssign as hExportAssign, classOpen as hClassOpen, classEnd as hClassEnd, paramProp as hParamProp, ctorBody as hCtorBody, castErase as hCastErase, ambientVar as hAmbientVar, moduleEsmSeen as hModuleEsmSeen, moduleCjsSeen as hModuleCjsSeen, } from './downlevel.zena'; export function init(): void { hInit(); } export function enumStart(): void { hEnumStart(); } export function enumStep(): void { hEnumStep(); } export function namespaceStart(start: i32, lead: i32): void { hNamespaceStart(start, lead); } export function namespaceEnd(values: i32): void { hNamespaceEnd(values); } export function exportModifier(): i32 { return hExportModifier(); } export function dropPending(): void { hDropPending(); } export function hookSp(): i32 { return hHookSp(); } export function blockHook(): boolean { return hBlockHook(); } export function functionHead(n: i32): void { hFunctionHead(n); } export function className(): void { hClassName(); } export function varFlags(k: i32): i32 { return hVarFlags(k); } export function declNames(flags: i32): boolean { return hDeclNames(flags); } export function importEquals(): void { hImportEquals(); } export function exportAssign(): void { hExportAssign(); } export function classOpen(ext: i32): void { hClassOpen(ext); } export function classEnd(): void { hClassEnd(); } export function paramProp(): void { hParamProp(); } export function ctorBody(): void { hCtorBody(); } export function castErase(m: i32, end: i32, ctxFlags: i32): i32 { return hCastErase(m, end, ctxFlags); } export function ambientVar(n: i32): i32 { return hAmbientVar(n); } export function moduleEsmSeen(): boolean { return hModuleEsmSeen(); } export function moduleCjsSeen(): boolean { return hModuleCjsSeen(); }