assertThisInitialized.js 219 B

123456789
  1. function _assertThisInitialized(self) {
  2. if (self === void 0) {
  3. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4. }
  5. return self;
  6. }
  7. module.exports = _assertThisInitialized;