code: function ErrorWithCaller(caller) {
      Error.prepareStackTrace = function justStoreStackStace(error, frames) {
          error.__StackStace = frames;
          return '';
      };
      Error.captureStackTrace(this, caller);
      this.stack;  // jshint ignore:line
      delete Error.prepareStackTrace;
  }
docs: JavaScriptStackTraceApi