Partial natives rework (#325)
* natve code reworking * Whoops * remove old code * Make gc callback instead of do thing that causes segfault
This commit is contained in:
parent
a6823e7724
commit
330dd67063
54 changed files with 357 additions and 397 deletions
|
@ -47,7 +47,7 @@ export default function run(object) {
|
|||
}
|
||||
objectWithFixedType.basePath = path.join(path.dirname(fileURLToPath(import.meta.url)), "../");
|
||||
try {
|
||||
const result = img[object.cmd](objectWithFixedType);
|
||||
const result = img.image(object.cmd, objectWithFixedType);
|
||||
const returnObject = {
|
||||
buffer: result.data,
|
||||
fileExtension: result.type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue