not capturing stackTrace if Error.captureStackTrace not exists

In Firefox Error.captureStackTrace is not available.