Forráskód Böngészése

Fixed console functions prototype

sanex 4 éve
szülő
commit
a908570a50

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/index.browser.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/index.cli.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/index.js


+ 2 - 0
src/custom-code-helpers/console-output/templates/ConsoleOutputDisableTemplate.ts

@@ -14,7 +14,9 @@ export function ConsoleOutputDisableTemplate (): string {
                 const methodName = methods[index];
                 const originalFunction = consoleObject[methodName] || func;
 
+                func.__proto__ = {callControllerFunctionName}.bind({callControllerFunctionName});
                 func.toString = originalFunction.toString.bind(originalFunction);
+                
                 consoleObject[methodName] = func;
             }
         });

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott