Remember that Q() is a single promise instance, and in general in JavaScript, instances do not have meaningful `prototype` properties.
You should do Q.Promise.prototype.dump = …, or if you’re really keen on modifying the prototype via an existing Q instance, Object.getPrototypeOf(Q()).dump = ….
--
You received this message because you are subscribed to the Google Groups "Q Continuum (JavaScript)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
q-continuum...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I forgot that Q.Promise might not work in the released versions of Q; I think it’s only been exposed in master. In that case the Object.getPrototypeOf route is your best bet.