Re: Sandboxing and parsing jQuery in 100ms

2012-11-08 Thread gaz Heyes
For entertainment purposes I used MentalJS to parse itself. I found that I had trailing commas in a couple of my object literals. Then I decided to execute itself inside the sandbox: eval(js=MentalJS();alert(js.parse('1+1'))); I added an inception button to show how it does this. Parse time moves

Re: Promises

2012-11-08 Thread Mariusz Nowak
Kevin Smith-21 wrote: The only hard part that isn't really addressed by currently library implementations is error handling. I feel pretty strongly that rejections (and by extension, errors thrown from `then` callbacks), should ALWAYS be observable. In other words, if a rejection is not

Re: Promises

2012-11-08 Thread Mariusz Nowak
Domenic Denicola-2 wrote: If I understand correctly, promise.done(onFulfilled, onRejected) does what you want in Q and in WinJS. See http://msdn.microsoft.com/en-us/library/windows/apps/hh700337.aspx for a nice explanation from the WinJS folks.

Re: __proto__ and accessor descriptors

2012-11-08 Thread Jeff Walden
On 10/26/2012 02:30 PM, David Bruant wrote: Le 26/10/2012 22:56, Asen Bozhilov a écrit : var obj = Object.defineProperty({}, '__proto__', { get : function () {return '__proto__ getter'}, set : function (){return '__proto__ setter'} }); console.log(obj.__proto__); //[object Object]

Re: __proto__ and accessor descriptors

2012-11-08 Thread Brendan Eich
Jeff Walden wrote: On 10/26/2012 02:30 PM, David Bruant wrote: Le 26/10/2012 22:56, Asen Bozhilov a écrit : var obj = Object.defineProperty({}, '__proto__', { get : function () {return '__proto__ getter'}, set : function (){return '__proto__ setter'} });

Re: Array.prototype.contains

2012-11-08 Thread Jeff Walden
On 11/03/2012 11:06 PM, Mark S. Miller wrote: On Sat, Nov 3, 2012 at 10:13 PM, Axel Rauschmayer a...@rauschma.de mailto:a...@rauschma.de wrote: (I am still sad we did not fix indexOf, lastIndexOf, and switch when we arguably had the chance.) Can you elaborate? We don’t have the

Re: __proto__ and accessor descriptors

2012-11-08 Thread David Bruant
Le 09/11/2012 00:05, Jeff Walden a écrit : On 10/26/2012 02:30 PM, David Bruant wrote: Le 26/10/2012 22:56, Asen Bozhilov a écrit : var obj = Object.defineProperty({}, '__proto__', { get : function () {return '__proto__ getter'}, set : function (){return '__proto__ setter'} });

Java Enhancement Proposal 169: Value Objects

2012-11-08 Thread Axel Rauschmayer
http://openjdk.java.net/jeps/169 Looks familiar. ;-) -- Dr. Axel Rauschmayer a...@rauschma.de home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com ___ es-discuss mailing list es-discuss@mozilla.org