From 766a38e9e88e59a95e15b25dc96e0fbfef53f471 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 4 Jul 2018 19:21:21 +0300 Subject: [PATCH] polyfill Error.captureStackTrace in FF fixes #412 --- js/usercss.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/usercss.js b/js/usercss.js index 5b67a746..b23b150f 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -51,6 +51,7 @@ var usercss = (() => { return loadScript('/vendor/stylus-lang/stylus.min.js').then(() => ( new Promise((resolve, reject) => { const varDef = Object.keys(vars).map(key => `${key} = ${vars[key].value};\n`).join(''); + if (!Error.captureStackTrace) Error.captureStackTrace = () => {}; window.stylus(varDef + source).render((err, output) => { if (err) { reject(err);