Zolmeister / promiz

A polyfill for ES6-style Promises in 913 bytes (gzip)
MIT License
102 stars 11 forks source link

export native Promise firstly #14

Closed wyntau closed 8 years ago

Zolmeister commented 8 years ago

thanks

Zolmeister commented 8 years ago

So I reverted this because it broke tests (tests never hit the lib), but also because I reconsidered and think it is a mistake to expose the global through the lib. The correct usage is to polyfill the global itself.

wyntau commented 8 years ago

The correct usage is to polyfill the global itself.

@Zolmeister what's the meaning?

Zolmeister commented 8 years ago
window.Promise = window.Promise || require('promiz')