{
  "a":123,
  "b": this.a
}

If you simply want “this” in JSON.parse,  it will not be hard to implement
it in my library.
But I guess the problem is we have no way to refer to its parent. Do you
have any ideas?

2012/3/5 gaz Heyes <[email protected]>

> It's a shame that "this" doesn't work with object literals :(
> How nice would this be:
>
> {
>   "a":123,
>   "b": this.a
> }
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to