Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function constr($$) {
const proto = Object.create(FramePrototype);
proto.$meta = info;
proto.$$ = $$;
proto.$run = info.handler;
proto.$err = info.errHandler;
const closure = info.func(proto);
closure[metaDataSymbol] = proto;
closure[S.descriptorSymbol] = funcDescr;
// proto[S.descriptorSymbol] = frameDescr;
proto.constructor = closure;
return closure;
}
S.regOpaqueObject(constr, `c#${info.module.name}#${info.name}`);
export function imports(value, name) {
if (!value) return value;
if (value[thunkSymbol]) {
value = value();
if (!value) return value;
}
if (!value[S.descriptorSymbol]) regModule(value, name);
return value;
}