github.com/nektos/act@v0.2.63/pkg/runner/testdata/actions/node12/node_modules/deprecation/dist-node/index.js (about)

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