4 ms·
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
by krzbrg 12y ago
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_Proxy_API https://developer.mozilla.org/en-US/docs/Archive/Web/Old_Pro...
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
[3] http://kangax.github.io/compat-table/es6/ http://kangax.github.io/compat-table/es6/
- epidemian 12y agoNot 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/Reference/Global_Objects/Proxy https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...