You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The triage currently at #6219 would fix it, with the explanation and code
// The `await` within `atomicWriteInRoot` above is only safe// when the second `writeContents` argument,// in all calls to `atomicWriteInRoot`, is a function whose calls cannot// synchronously throw. Even though this arrow function// seems to only call `filter`, which is a local async function and// therefore safe by itself, this arrow function also calls// `createGzip()`, which we cannot locally verify does not// synchronously throw. Thus, we made the arrow function async,// so that it cannot throw regardless. This seems to be consistent// with its purpose, and with the likely assumptions the program// author made when placing it here.//atomicWriteInRoot(baseName,asynctmpGzPath=>filter(tmpSnapPath,createGzip(),tmpGzPath,{flush: true}),),
Most of #6219 consists of commentary or cosmetic code changes, and so can be postponed until after PS0. But this is a safety fix. Whether we should cherry pick it, to get it in before PS0 depends on what the consequences are of not fixing it.
Assigning myself since I have the fix done in #6219 and would do the cherry picking if we decide to do that.
Git blame shows @gibson042 and @dckc as the ones who should probably investigate this, so I'm assigning to them as well. Feel free to reassign as appropriate of course.
The text was updated successfully, but these errors were encountered:
agoric-sdk/packages/swing-store/src/snapStore.js
Lines 265 to 267 in 293f88e
The triage currently at #6219 would fix it, with the explanation and code
Most of #6219 consists of commentary or cosmetic code changes, and so can be postponed until after PS0. But this is a safety fix. Whether we should cherry pick it, to get it in before PS0 depends on what the consequences are of not fixing it.
Assigning myself since I have the fix done in #6219 and would do the cherry picking if we decide to do that.
Git blame shows @gibson042 and @dckc as the ones who should probably investigate this, so I'm assigning to them as well. Feel free to reassign as appropriate of course.
The text was updated successfully, but these errors were encountered: