__stack not added to global object in callsite >=1.0.0. Updated for compatibility