fix Promise polyfill behavior

call a resolver when the promise is created