question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Return ES2015 Proxy object

See original GitHub issue

Issuehunt badges

ECMAScript6 Proxies are currently not available on node, therefore this issue is a reminder for future versions.

pify(obj) should return an ECMAScript6 Proxy object, forwarding almost all operations to obj, and promisifying only some functions, thus we almost surely get rid of most non-enumerable and inheritance issues.


IssueHunt Summary

frangio frangio has been rewarded.

Backers (Total: $70.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
sindresorhuscommented, Feb 11, 2018

@bfred-it Some things will just work compared to now, like ES6 classes, this binding, etc.

1reaction
sindresorhuscommented, Mar 16, 2019

Anyone wants to step in and finish https://github.com/sindresorhus/pify/pull/32? Including handle my review comments. I’ll put a bounty on this shortly. I think it’s better now to just have the proxy interface instead of both. Proxy is pretty optimized in newer Node.js versions. This task includes adding tests to handle all the things mentioned in the open issues too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proxy - JavaScript - MDN Web Docs
The Proxy object enables you to create a proxy for another object, which can intercept and redefine fundamental operations for that object.
Read more >
how do I turn an ES6 Proxy back into a plain object (POJO)?
I'm using a library that turns things into ES6 Proxy objects, and another library that I think is choking ...
Read more >
Introducing ES2015 proxies - Chrome Developers
The Proxy API contains a Proxy constructor that takes a designated target object and a handler object. var target = { /* some...
Read more >
JavaScript Proxy Explained Clearly By Practical Examples
A JavaScript Proxy is an object that wraps another object (target) and intercepts the fundamental operations of the target object.
Read more >
mikaelbr/awesome-es2015-proxy - GitHub
Tries to collect resources such as presentations, articles, modules and examples using Proxy, Reflect and other intercession type metaprogramming. The Proxy ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found