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:
bjcscat 2022-11-27 13:03:07 -06:00 committed by GitHub
parent a6823e7724
commit 330dd67063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 357 additions and 397 deletions

View file

@ -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