Skip to content

Fix wrong number of arguments passed by Function.prototype.apply.#38

Open
progval wants to merge 1 commit into
brownplt:masterfrom
progval:fix-apply
Open

Fix wrong number of arguments passed by Function.prototype.apply.#38
progval wants to merge 1 commit into
brownplt:masterfrom
progval:fix-apply

Conversation

@progval

@progval progval commented Jun 19, 2014

Copy link
Copy Markdown
Contributor

%applylambda makes a call to %mkArgsObj, which adds a property (%new), which increases the length of the array passed to the called function.
This patch restores the original length, if any.

It also makes test unit-tests/apply-args.js pass.

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.

1 participant