Normal classes throw an exception because they have a bug in them. :P
 
Try "Error" vs "new Error" - no difference at all. `Promise` should do the same.
 
The fact that it's a constructor is just an implementation detail after all. Thus, people shouldn't write `new` there.
 
 
20.08.2014, 16:52, "Axel Rauschmayer" <a...@rauschma.de>:
Currently there seem to be two ways to create promises. Normal classes throw an exception if you call them as functions (without `new`). Should `Promise` do the same?
 
Axel

-- 
Dr. Axel Rauschmayer
a...@rauschma.de
rauschma.de
,

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to