Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. module.exports = BigClass
  2.  
  3. function BigClass () {}
  4.  
  5. require('./expansion') // I've tried moving this about, to no avail
  6.  
  7. BigClass.prototype.doAThing = function () {
  8. console.log(`I did a thing`)
  9. this.doAnotherThing() // Intellisense doesn't suggest this as an option - but it's legit
  10. }
  11.  
  12. const BigClass = require('./index')
  13.  
  14. BigClass.prototype.doAnotherThing = function () {
  15. console.log(`I did another thing`)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement