Skip to content

Conversation

@behnammodi
Copy link

@behnammodi behnammodi commented Apr 4, 2021

@pladaria Could you please review this PR, and if everything was ok, publish it on npm?

function(cb) {
function(cb, options) {
var options = options || {};
var timeout = options.timeout || 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't actually used as the timeout.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I think we have to implement all options in polyfill

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the point of the timeout to change the timeout argument given to setTimeout?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous code always say to callback didTimeout is false, but that is not correct

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do you any questions? or you are not sure about this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants