* Clear container * * @param {Object } newHelpers * @param {Object } newSupport * @param {Object } newPlugins
(newHelpers = {}, newSupport = {}, newPlugins = {})
| 276 | * @param {Object<string, *>} newPlugins |
| 277 | */ |
| 278 | static async clear(newHelpers = {}, newSupport = {}, newPlugins = {}) { |
| 279 | container.helpers = newHelpers |
| 280 | container.translation = await loadTranslation() |
| 281 | container.proxySupportConfig = newSupport |
| 282 | container.proxySupport = createSupportObjects(newSupport) |
| 283 | container.plugins = newPlugins |
| 284 | container.sharedKeys = new Set() // Clear shared keys |
| 285 | asyncHelperPromise = Promise.resolve() |
| 286 | store.actor = null |
| 287 | debug('container cleared') |
| 288 | } |
| 289 | |
| 290 | /** |
| 291 | * @param {Function|null} fn |
nothing calls this directly
no test coverage detected