瀏覽代碼

Fixed console functions prototype

sanex 4 年之前
父節點
當前提交
a908570a50

文件差異過大導致無法顯示
+ 0 - 0
dist/index.browser.js


文件差異過大導致無法顯示
+ 0 - 0
dist/index.cli.js


文件差異過大導致無法顯示
+ 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;
             }
         });

部分文件因文件數量過多而無法顯示