LINUX.ORG.RU

История изменений

Исправление ddidwyll, (текущая версия) :

const fn = void (() => console.log("hi"));

try {
  fn();
} catch (e) {
  console.log('test function is not defined');
  // Expected output: "test function is not defined"
}

Исходная версия ddidwyll, :

const fn = void(() => console.log("hi"));

try {
  fn();
} catch (e) {
  console.log('test function is not defined');
  // Expected output: "test function is not defined"
}