vinyl icon indicating copy to clipboard operation
vinyl copied to clipboard

Use ES2015 Proxies

Open phated opened this issue 9 years ago • 2 comments

I wanted to open this issue as a place to track things we could use Proxies to implement.

  • Currently, unsetting base to fallback to cwd requires setting base to null or undefined. With Proxies, I believe we could watch for delete 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

phated avatar Sep 23 '16 20:09 phated

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.

phated avatar Sep 27 '16 00:09 phated

Yeah, that would be a great use for a proxy here.

darsain avatar Sep 27 '16 07:09 darsain