MCPcopy
hub / github.com/webpack/webpack / clearWarningsAndErrors

Method clearWarningsAndErrors

lib/Module.js:817–824  ·  lib/Module.js::Module.clearWarningsAndErrors

* removes all warnings and errors * @returns {void}

()

Source from the content-addressed store, hash-verified

815 * @returns {void}
816 */
817 clearWarningsAndErrors() {
818 if (this._warnings !== undefined) {
819 this._warnings.length = 0;
820 }
821 if (this._errors !== undefined) {
822 this._errors.length = 0;
823 }
824 }
825
826 /**
827 * Checks whether this module is optional.

Callers 2

buildMethod · 0.80
buildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected