Skip to content

Commit

Permalink
Fixed console functions prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
sanex3339 committed Aug 13, 2020
1 parent 4f28bee commit a908570
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.cli.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit a908570

Please sign in to comment.