From 96cd62f6acaa7444478c24cf8856f3da643480d3 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Tue, 20 Oct 2020 21:24:37 -0700 Subject: [PATCH] fix: stop suppressing contract evaluation errors (#1887) Fixed a bug that was causing early (syntax) errors to be silently dropped. --- packages/zoe/src/contractFacet/evalContractCode.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/zoe/src/contractFacet/evalContractCode.js b/packages/zoe/src/contractFacet/evalContractCode.js index d42ff0b5dcc..ec22c61434e 100644 --- a/packages/zoe/src/contractFacet/evalContractCode.js +++ b/packages/zoe/src/contractFacet/evalContractCode.js @@ -23,7 +23,9 @@ const evalContractBundle = (bundle, additionalEndowments = {}) => { const installation = importBundle(bundle, { endowments: fullEndowments, - }).catch(() => {}); // Don't trigger Node.js's UnhandledPromiseRejectionWarning + }); + // Don't trigger Node.js's UnhandledPromiseRejectionWarning + installation.catch(() => {}); return installation; };