Use ES2015 Proxies
phated opened this issue · comments
Blaine Bublitz commented
I wanted to open this issue as a place to track things we could use Proxies to implement.
- Currently, unsetting
base
to fallback tocwd
requires setting base tonull
orundefined
. With Proxies, I believe we could watch fordelete file.base
and unset it. - We could probably do some cool
stat
stuff with Proxies. Not sure what though.
More information about Proxies at https://github.com/mikaelbr/proxy-fun
Blaine Bublitz commented
In the docs, we currently tell people to treat history
and it's properties as read-only. I think we could enforce this with proxies.
darsain commented
Yeah, that would be a great use for a proxy here.