function markFunctionWrapped(wrapped, original) {
    var proto = original.prototype || {};
    wrapped.prototype = original.prototype = proto;
    addNonEnumerableProperty(wrapped, '__sentry_original__', original);
}
Remembers the original function on the wrapped function and
patches up the prototype.

@param wrapped the wrapper function
@param original the original function that gets wrapped