In https://github.com/electron/electron/commit/7613afe6d70eadd7446db921918dca086cd324c0 I had to disable the check that validates that the constructor is called on the right thread, because the check fails when the tests run.

Let's make sure the check doesn't fail and re-enable it. Or refactor so that the thread affinity is not required and remove the check.
atom/browser/api/atom_api_app.cc
JumpListItem* out) {
    mate::Dictionary dict;
    if (!ConvertFromV8(isolate, val, &dict))
      return false;
    if (!dict.Get("type", &(out->type)))
      return false;
    switch (out->type) {
      case JumpListItem::Type::TASK:
        if (!dict.Get("program", &(out->path)) ||
            !dict.Get("title", &(out->title)))
          return false;
        if (dict.Get("iconPath", &(out->icon_path)) &&
            !dict.Get("iconIndex", &(out->icon_index)))
          return false;
        dict.Get("args", &(out->arguments));
        dict.Get("description", &(out->description));
        return true;
      case JumpListItem::Type::SEPARATOR:
        return true;
      case JumpListItem::Type::FILE:
        return dict.Get("path", &(out->path));
    }
    assert(false);
    return false;
  }
  static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,