Browse Source

Fixed console functions prototype

sanex 4 năm trước cách đây
mục cha
commit
a908570a50

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.browser.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.cli.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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;
             }
         });

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác