From 5f0e6f13eb29c6ed42f6355ec84fbc2d3adef806 Mon Sep 17 00:00:00 2001 From: lohit Date: Fri, 23 Aug 2024 18:16:43 +0530 Subject: [PATCH] fix: quickjs vm handle errors (#2906) * fix: quickjs vm handle errors --- packages/bruno-js/src/sandbox/quickjs/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bruno-js/src/sandbox/quickjs/index.js b/packages/bruno-js/src/sandbox/quickjs/index.js index 79ee2b8e8..288373bc8 100644 --- a/packages/bruno-js/src/sandbox/quickjs/index.js +++ b/packages/bruno-js/src/sandbox/quickjs/index.js @@ -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'; })()