* Adds the provided warning to the module. * @param {Error} warning the warning * @returns {void}
(warning)
| 760 | * @returns {void} |
| 761 | */ |
| 762 | addWarning(warning) { |
| 763 | if (this._warnings === undefined) { |
| 764 | this._warnings = []; |
| 765 | } |
| 766 | this._warnings.push(warning); |
| 767 | } |
| 768 | |
| 769 | /** |
| 770 | * Returns list of warnings if any. |
no test coverage detected