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

Reflect.apply should throw when no argumentsList is given #194

Closed
loganfsmyth opened this issue Apr 27, 2016 · 1 comment
Closed

Reflect.apply should throw when no argumentsList is given #194

loganfsmyth opened this issue Apr 27, 2016 · 1 comment

Comments

@loganfsmyth
Copy link
Contributor

function fn(){ console.log(Array.from(arguments)); };
Reflect.apply(fn, {})

passes no arguments, but should actually throw. Someone reported this in Babel's slack when upgrading to Node 6.

@zloirock
Copy link
Owner

Thanks. I fixed the same case for Reflect.construct 3 days ago but missed Reflect.apply.

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

No branches or pull requests

2 participants