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

Fix for bind compatibility implementation (polyfill) #4299

Merged
merged 1 commit into from
Feb 18, 2014

Conversation

mitar
Copy link
Contributor

@mitar mitar commented Feb 15, 2014

Previously, reconstruction of arguments was incorrect if arguments contained arrays. Arrays were added to arguments as their elements and not as a whole array. It is enough to simply pass whole array to concat and it will be (only one level deep) added to arguments.

In addition, we call slice on arguments for maximum compatibility (it is used in Underscore.js library, with which I was comparing implementations while debugging).

Previously, reconstruction of arguments was incorrect if arguments contained
arrays. Arrays were added to arguments as their elements and not as a whole
array. It is enough to simply pass whole array to concat and it will be (only
one level deep) added to arguments.

In addition, we call slice on arguments for maximum compatibility (it is used
in Underscore.js library, with which I was comparing implementations while
debugging).
@Snuffleupagus
Copy link
Collaborator

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/df5b92b1e7303ea/output.txt

yurydelendik added a commit that referenced this pull request Feb 18, 2014
Fix for bind compatibility implementation (polyfill)
@yurydelendik yurydelendik merged commit d28b890 into mozilla:master Feb 18, 2014
@yurydelendik
Copy link
Contributor

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.

4 participants