MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript / FN_NATIVE

Function FN_NATIVE

src/interpreter/value.ts:137–141  ·  view source on GitHub ↗
(fn: VNativeFn['native'], fnSync?: VNativeFn['nativeSync'])

Source from the content-addressed store, hash-verified

135});
136
137export const FN_NATIVE = (fn: VNativeFn['native'], fnSync?: VNativeFn['nativeSync']): VNativeFn => ({
138 type: 'fn' as const,
139 native: fn,
140 nativeSync: fnSync,
141});
142
143export const ERROR = (name: string, info?: Value): Value => ({
144 type: 'error' as const,

Callers 10

interpreter.tsFile · 0.85
exeAndGetErrPosFunction · 0.85
exeAndGetErrMessageFunction · 0.85
GenerateLegacyRandomFunction · 0.85
GenerateRC4RandomFunction · 0.85
GenerateChaCha20RandomFunction · 0.85
constructorMethod · 0.85
primitive-props.tsFile · 0.85
math.tsFile · 0.85
std.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected