index.js 417 B

1234567891011121314151617181920
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. class Deprecation extends Error {
  4. constructor(message) {
  5. super(message); // Maintains proper stack trace (only available on V8)
  6. /* istanbul ignore next */
  7. if (Error.captureStackTrace) {
  8. Error.captureStackTrace(this, this.constructor);
  9. }
  10. this.name = 'Deprecation';
  11. }
  12. }
  13. exports.Deprecation = Deprecation;