Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolves #1475 bridge common Ruby object methods (backport v2.2.x) #1550

Merged

Conversation

ggrossetie
Copy link
Member

We are using https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from which is not available in IE.

I think we should mention that in the next release but I don't want to include a polyfill.

@mojavelinux
Copy link
Member

It also uses the spread assignment, which wouldn't work in IE either. However, a more portable and likely more efficient way of doing it is:

var args = Array.prototype.slice.call(arguments, 1)

@ggrossetie
Copy link
Member Author

It also uses the spread assignment, which wouldn't work in IE either. However, a more portable and likely more efficient way of doing it is:

Good suggestion, thanks!

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.

None yet

2 participants