From 30f58b92ee88a2c90ab570d68f4ff4628126b5f0 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 4 Nov 2018 10:04:49 -0500 Subject: [PATCH] v8_prof_polyfill: remove unused catch bindings PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts Reviewed-By: Wyatt Preul --- lib/internal/v8_prof_polyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/v8_prof_polyfill.js b/lib/internal/v8_prof_polyfill.js index 43ccc0e5d8b..59e1b8947ee 100644 --- a/lib/internal/v8_prof_polyfill.js +++ b/lib/internal/v8_prof_polyfill.js @@ -140,7 +140,7 @@ function macCppfiltNm(out) { filtered = cp.spawnSync('c++filt', [ '-p' , '-i' ], { input: entries.join('\n') }).stdout.toString(); - } catch (e) { + } catch { return out; }