JavaScript methods don’t carry their receiver when you pass them around. With onFull: waitlist.add, this.onFull(name) calls add() on the session. A detached const add = waitlist.add has this === undefined when called directly in strict mode.
Pass onFull: (name) => waitlist.add(name) to make the call on the waitlist. Inside another method, an arrow callback such as (pass) => this.book(pass) keeps that method’s this; a plain function callback gets its own call-dependent receiver. An arrow held in an instance field also captures its instance’s this.
Next, Save Cards and Offer Canceled Lanes applies record saving and a second waitlist callback.