Comments (2)
).then(harden, harden);
Aside from hardening, this is not semantics preserving. You probably meant:
).then(harden, (er) => { throw harden(er); })
or
).then(harden, (er) => Promise.reject(harden(er)))
from agoric-sdk.
We need to do more of this hardening ourselves, even in the return context. If we release objects we've made without hardening them, then they are not defensive. In this particular case the array is fresh and transferred rather than shared, so there's not actually any damage our clients can do to us by mutating the array. But the testing code doesn't have any way to tell. And we don't have enough static checks to tell at the releasing side either. As @dckc says, about 40% of our overall engineering effort is fighting the pervasive mutability of JS.
Assigning this to myself , not that I'm going to put in all the harden
s we're missing. But I can take the lead for now at figuring out how to get us to put in the hardens we need, or how to survive not doing so.
@dckc the static analysis you're thinking of doing is likely crucial to this effort. In recognition of that I'm adding you to the assignees as well.
from agoric-sdk.
Related Issues (20)
- Add upgrade-16 (from a3p-integration) to agoric-3-proposals
- update a3p-integration to post-upgrade16
- Update deprecated fields in Mergify
- Inter Protocol vaults should allow adjustments that don't increase debt when mint limit <= debt outstanding HOT 1
- Orch Examples `stakeIca` and `stakeBld` Do not Use `withOrchestration`
- Figure out how to sequentialize vaults core evals HOT 11
- Create a core-eval runbook for vat-orchestration HOT 2
- Narrow Scope of .gitignore for proposals/a:upgrade-next folder
- CI Failure Due to Git Dirty Tree Check on Merging PR with master
- `yarn create @agoric/dapp demo` fails with yarn 4 (nodeLinker pnp) HOT 1
- multichain-testing with mainnet fork as agoric chain
- Possible metrics bug in Vaults HOT 2
- Multichain Testing - Single Command Startup
- Multichain Testing - Automate Hermes Client Update HOT 1
- post-test fails in docker integration test
- State-sync snapshotting affect cosmos commit time
- agd memory leak
- Set up mainfork environment with U16 and Oracles HOT 2
- Support for `agoric.swingset.CoreEvalProposal` in `cosmos.gov.v1.MsgSubmitProposal`
- add test for retiring unreachable abandoned non-durables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agoric-sdk.