ModuleWarning.js 404 B

123456789101112131415
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. function ModuleWarning(module, warning) {
  6. Error.call(this);
  7. Error.captureStackTrace(this, ModuleWarning);
  8. this.name = "ModuleWarning";
  9. this.module = module;
  10. this.message = warning;
  11. this.warning = warning;
  12. }
  13. module.exports = ModuleWarning;
  14. ModuleWarning.prototype = Object.create(Error.prototype);