Re: Proxies as prototypes

2014-11-23 Thread David Bruant
Le 23/11/2014 07:41, Axel Rauschmayer a écrit : I’d expect the following code to log `GET bla`, but it currently doesn’t in Firefox. That’s because the Firefox implementation of proxies isn’t finished yet, right? Yes. That would be https://bugzilla.mozilla.org/show_bug.cgi?id=914314 I think.

Eval, literal eval, safe eval

2014-11-23 Thread Michał Wadas
Introdution: - eval executes piece of code - eval can not be safely used with external input - Python's ast.literal_eval would be almost useless in modern JavaScript (almost all data types can be easily send as JSON) literal_eval description: The string or node provided may only consist of the

Re: Eval, literal eval, safe eval

2014-11-23 Thread Florian Bösch
On Sun, Nov 23, 2014 at 12:27 PM, Michał Wadas michalwa...@gmail.com wrote: literal_eval description: The string or node provided may only consist of the following Python literal structures: strings, numbers, tuples, lists, dicts, booleans, and None. Also known as JSON.parse. My

Re: Retrieving generator references

2014-11-23 Thread Alex Kocharin
  23.11.2014, 07:03, "Brendan Eich" bren...@mozilla.org:Axel Rauschmayer wrote: As an aside, I still feel that two concerns are mixed in a generator  function: * The creation of the generator object. This is where the generator  function is like a constructor and where you’d expect `this` to refer

Re: Proxies as prototypes

2014-11-23 Thread Till Schneidereit
On Sun, Nov 23, 2014 at 11:58 AM, David Bruant bruan...@gmail.com wrote: Le 23/11/2014 07:41, Axel Rauschmayer a écrit : I’d expect the following code to log `GET bla`, but it currently doesn’t in Firefox. That’s because the Firefox implementation of proxies isn’t finished yet, right?

Re: Proxies as prototypes

2014-11-23 Thread Axel Rauschmayer
On 23 Nov 2014, at 13:39, Till Schneidereit t...@tillschneidereit.net wrote: On Sun, Nov 23, 2014 at 11:58 AM, David Bruant bruan...@gmail.com mailto:bruan...@gmail.com wrote: Le 23/11/2014 07:41, Axel Rauschmayer a écrit : I’d expect the following code to log `GET bla`, but it currently

Re: Eval, literal eval, safe eval

2014-11-23 Thread Mark S. Miller
https://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/ses/ http://research.google.com/pubs/pub40673.html https://code.google.com/p/google-caja/wiki/SES www-cs-students.stanford.edu/~ataly/Papers/sp11.pdf http://wiki.ecmascript.org/doku.php?id=strawman:concurrency

Re: Eval, literal eval, safe eval

2014-11-23 Thread Mark S. Miller
On Sun, Nov 23, 2014 at 3:38 AM, Florian Bösch pya...@gmail.com wrote: On Sun, Nov 23, 2014 at 12:27 PM, Michał Wadas michalwa...@gmail.com wrote: literal_eval description: The string or node provided may only consist of the following Python literal structures: strings, numbers, tuples,

Re: Eval, literal eval, safe eval

2014-11-23 Thread Mark Miller
On Sun, Nov 23, 2014 at 8:22 AM, Mark S. Miller erig...@google.com wrote: https://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/ses/ http://research.google.com/pubs/pub40673.html https://code.google.com/p/google-caja/wiki/SES

Re: Retrieving generator references

2014-11-23 Thread Nicholas C. Zakas
Thanks all. My intent wasn't to propose that something was necessary, just to ask if something was available that I was missing. I'll dig in on the await spec and take a good look at the various examples everyone provided. Thanks! ___ es-discuss