Uncaught SyntaxError: Nieoczekiwany token = w Google Chrome

Mam funkcję javascript, która akceptuje opcjonalny parametr. To działa dobrze wFirefox, ale wGoogle Chrome to pokazuje:-

Uncaught SyntaxError: Unexpected token =

Mój kod,

function errorNotification(text = "Something went wrong!") {
  $.pnotify({
      title: 'Error',
      text: text,
      type: 'error'
  });
}

Widziałem wiele podobnych pytań, ale nie mogę zrozumieć mojego problemu.

questionAnswers(4)

yourAnswerToTheQuestion