Promise() vs. new Promise()

Axel Rauschmayer axel at rauschma.de
Wed Aug 20 05:52:27 PDT 2014


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
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140820/1130538f/attachment.html>


More information about the es-discuss mailing list