News for hackers. Stuff that matters.
Re:Meta-programming JavaScript Using Proxies by krzbrg on Thursday February 05, 2015 @11:08AM (#9003927)
It was odd that the post was prefaced with a warning that "you will have to use Chrome/Chromium" before opening with an example copied and pasted from Mozilla's docs. This is not true. The example works in the Firefox 35.0.1 console out of the box. There are no feature flags or internal browser configurations that need to be changed. Also worth noting that the first example came from an outdated MDN Proxy API documentation page [1]. The current Proxy API page covers the ECMAScript 6 proposal [2].

If you're interested in seeing which browsers have implemented these ES6 features, Kangax has a nice table up on GitHub pages [3].

[1] https://developer.mozilla.org/en-US/docs/Archive/Web/Old_Pro...

[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[3] http://kangax.github.io/compat-table/es6/

Re:Meta-programming JavaScript Using Proxies by epidemian on Thursday February 05, 2015 @12:45PM (#9004613)
Not only that, but Proxy has been implemented in Firefox for a while†. I remember having played with it a long time ago.

†: Since Firefox 18 according to the MDN: https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...