in packages/core/lib/patchers/promise_p.js [18:29]
Promise.prototype.then = function(onFulfilled, onRejected) {
if (contextUtils.isAutomaticMode()
&& tryGetCurrentSegment()
) {
const ns = contextUtils.getNamespace();
onFulfilled = onFulfilled && ns.bind(onFulfilled);
onRejected = onRejected && ns.bind(onRejected);
}
return then.call(this, onFulfilled, onRejected);
};