index.js
function polyconsole(method) {
      var attach = { debug: 1, error: 1, log: 1, warn: 1 };

      //
      // Ensure that this host environment always has working console.
      //
      global.console[method] = function polyfilled() {
        var args = Array.prototype.slice.call(arguments, 0);

        //
        // If the host supports this given method natively, execute it.
        //
        if (method in fconsole) fconsole[method].apply(fconsole, args);

        //
        // Proxy messages to the container.
        //
        this._alcatraz_method_({
          attach: method in attach,
          type: 'console',
          scope: method,
          args: args
        });
      };
    }
function polyconsole(method) {
      var attach = { debug: 1, error: 1, log: 1, warn: 1 };

      //
      // Ensure that this host environment always has working console.
      //
      global.console[method] = function polyfilled() {
        var args = Array.prototype.slice.call(arguments, 0);

        //
        // If the host supports this given method natively, execute it.
        //
        if (method in fconsole) fconsole[method].apply(fconsole, args);

        //
        // Proxy messages to the container.
        //
        this._alcatraz_method_({
          attach: method in attach,
          type: 'console',
          scope: method,
          args: args
        });
      };
    }
function polyconsole ( method ) { var attach = { debug : 1 , error : 1 , log : 1 , warn : 1 } ; // // Ensure that this host environment always has working console. // global . console [ method ] = function polyfilled ( ) { var args = Array . prototype . slice . call ( arguments , 0 ) ; // // If the host supports this given method natively, execute it. // if ( method in fconsole ) fconsole [ method ] . apply ( fconsole , args ) ; // // Proxy messages to the container. // this . _alcatraz_method_ ( { attach : method in attach , type : 'console' , scope : method , args : args } ) ; } ; }
Helper method to polyfill our global console method so we can proxy it's
usage to the

@param {String} method The console method we want to polyfill.
@api private
Helper method to polyfill our global console method so we can proxy it s usage to the