Changing a cookie's `path` after it is set


I’m trying to set a cookie from my Electron app, and later change the path. For this, all I do is call webContents.session.defaultSession.cookies.set() with a different path parameter.
However when I do a cookies.get later, I still see the old path in the retrieved cookies.

Using Electron 1.3.3.

Is this by design or am I doing something wrong?