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 throwing TypeError CreateListFromArrayLike due to wrong assert #31

Closed
protron opened this issue May 1, 2016 · 1 comment

Comments

@protron
Copy link

protron commented May 1, 2016

Line 15 of http://tddbin.com/#?kata=es6/language/reflect/apply has this wrong assert:

assert.equal(Reflect.apply(fn), 42);

I think that assert can never be fulfilled because the arguments of Reflect.apply seem to be all mandatory: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/apply

So I was able to pass the test after doing the proper modification in the line above and then changing that assert into:

assert.equal(Reflect.apply(fn, undefined, []), 42);
@wolframkriesing
Copy link
Collaborator

I worked on the reflect kata quite a bit today, please reopen in case this is still broken, thanks.
tddbin/katas#44

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