Angus Croll (2013-10-18T05:19:38.000Z)
I couldn't find a commitment to a specific syntax in the latest ES6
standard

Gecko, chrome experimental, traceur and 'node --harmony-proxies' support
the Proxy.create syntax (detailed in
http://wiki.ecmascript.org/doku.php?id=harmony:proxies)

e.g.
var proxy = Proxy.create({
 get: function(p, n) {
  return 'Hello ' + n;
 }
});
proxy.World //'Hello World'

However MDN calls the above the 'Old Proxy API'.
Gecko also supports what MDN indicates implies is the current Proxy  syntax
(i.e. new Proxy)
e.g.

var p = new Proxy(
  {},
  {get: function(p,x) {
    return 'Hello ' + x
  }}
);
p.World; //'Hello World'

Which is right?
thanks


@angustweets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131017/2f96e02c/attachment.html>
domenic at domenicdenicola.com (2013-10-26T03:11:46.063Z)
I couldn't find a commitment to a specific syntax in the latest ES6
standard

Gecko, chrome experimental, traceur and 'node --harmony-proxies' support
the Proxy.create syntax (detailed in http://wiki.ecmascript.org/doku.php?id=harmony:proxies)

e.g.

```js
var proxy = Proxy.create({
 get: function(p, n) {
  return 'Hello ' + n;
 }
});
proxy.World //'Hello World'
```

However MDN calls the above the 'Old Proxy API'.
Gecko also supports what MDN indicates implies is the current Proxy  syntax
(i.e. new Proxy)
e.g.

```js
var p = new Proxy(
  {},
  {get: function(p,x) {
    return 'Hello ' + x
  }}
);
p.World; //'Hello World'
```

Which is right?