

/**
 * Rename a function to a new name, for call stack and debugging
 *
 * @param {Function} func the function to rename
 * @param {String} newName the new name
 */
function renameFunction(func, newName) {
    // eslint-disable-next-line no-unused-vars
    const { value, ...others } = Object.getOwnPropertyDescriptor(func, 'name');
    Object.defineProperty(func, 'name', { value: newName, ...others });
}

export default renameFunction;
@@ -262,28 +262,12 @@
 nst 
-%7B value, ...others %7D
+prop
  = O
@@ -312,16 +312,79 @@
 name');%0A
+    if (prop) %7B%0A        const %7B value, ...others %7D = prop;%0A    
     Obje
@@ -447,16 +447,22 @@
 ers %7D);%0A
+    %7D%0A
 %7D%0A%0Aexpor

Rename function - Make it safer for IE