소스 검색

Fixed console functions prototype

sanex 4 년 전
부모
커밋
a908570a50
4개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 0 0
      dist/index.browser.js
  2. 0 0
      dist/index.cli.js
  3. 0 0
      dist/index.js
  4. 2 0
      src/custom-code-helpers/console-output/templates/ConsoleOutputDisableTemplate.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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;
             }
         });

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.