Register all object factory
()
| 1931 | |
| 1932 | /** Register all object factory */ |
| 1933 | private registerObjectFactoryFuncs(): void { |
| 1934 | this.registerObjectConstructor("ffi.Array", |
| 1935 | (handle: number, lib: FFILibrary, ctx: RuntimeContext) => { |
| 1936 | return new TVMArray(handle, lib, ctx); |
| 1937 | }); |
| 1938 | this.registerObjectConstructor("ffi.Module", |
| 1939 | (handle: number, lib: FFILibrary, ctx: RuntimeContext) => { |
| 1940 | return new Module(handle, lib, ctx); |
| 1941 | }); |
| 1942 | } |
| 1943 | |
| 1944 | /** Register global packed functions needed by the backend to the env. */ |
| 1945 | private registerEnvGlobalPackedFuncs(): void { |
no test coverage detected