From e582f1599d6f05fba21c7abebe0546df4107d60a Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Wed, 24 Feb 2016 15:41:58 +0100 Subject: [PATCH] Fix yet some uncaught errors on shutdown --- extension/bootstrap.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/bootstrap.coffee b/extension/bootstrap.coffee index 6127a7e..0993adc 100644 --- a/extension/bootstrap.coffee +++ b/extension/bootstrap.coffee @@ -96,14 +96,14 @@ do (global = this) -> shutdownHandler() catch error Cu.reportError(error) - shutdownHandlers = null + shutdownHandlers = [] # Release everything in `require`d modules. This must be done _after_ all # shutdownHandlers, since they use variables in these scopes. for path, scope of require.scopes for name of scope scope[name] = null - require.scopes = null + require.scopes = {} global.install = -> -- 2.39.3