code: function isPassive() {
      var supportsPassiveOption = false;
      try {
          addEventListener("test", null, Object.defineProperty({}, 'passive', {
              get: function () {
                  supportsPassiveOption = true;
              }
          }));
      } catch(e) {}
      return supportsPassiveOption;
  }
docs: ref https://github.com/WICG/EventListenerOptions/pull/30