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
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
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.
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]
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'}
});
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
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'}
});
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
8 matches
Mail list logo