* @static debug - If the Monogatari debug file is present, this function * will give access to the debug tools that are a replacement for the console * log functions. * * @returns {Debug} - Proxy to the Artemis Debug Class
()
| 737 | * @returns {Debug} - Proxy to the Artemis Debug Class |
| 738 | */ |
| 739 | static get debug () { |
| 740 | return new Proxy (Debug, { |
| 741 | apply (target, receiver, args) { |
| 742 | if (typeof MonogatariDebug === 'object') { |
| 743 | return Reflect.apply (target, receiver, args); |
| 744 | } |
| 745 | } |
| 746 | }); |
| 747 | } |
| 748 | |
| 749 | static set debug (_) { |
| 750 | throw new Error ('Debug reference cannot be overriden.'); |
no outgoing calls
no test coverage detected