index.js
function constructor(options, error, name) {
    Pagelet.prototype.constructor.call(this, options);

    if (name) this.name = name;
    this.data = error instanceof Error ? error : {};
  }
function constructor(options, error, name) {
    Pagelet.prototype.constructor.call(this, options);

    if (name) this.name = name;
    this.data = error instanceof Error ? error : {};
  }
function constructor ( options , error , name ) { Pagelet . prototype . constructor . call ( this , options ) ; if ( name ) this . name = name ; this . data = error instanceof Error ? error : { } ; }
Extend the default constructor to allow second data parameter.

@param {Object} options Optional options.
@param {Error} error Error data and stack.
@param {String} name Pagelet name that the Error pagelet replaces.
@api public
Extend the default constructor to allow second data parameter .