fix: quickjs vm handle errors (#2906)

* fix: quickjs vm handle errors
This commit is contained in:
lohit 2024-08-23 18:16:43 +05:30 committed by GitHub
parent 0b9554c8cc
commit 5f0e6f13eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,6 +160,7 @@ const executeQuickJsVmAsync = async ({ script: externalScript, context: external
}
catch(error) {
console?.debug?.('quick-js:execution-end:with-error', error?.message);
throw new Error(error?.message);
}
return 'done';
})()