LinkedInAttic/Fiber

Bug in passing the arguments

Closed this issue · 0 comments

Seems like apply accepts Array/arguments. Closing issue.

https://github.com/linkedin/Fiber/blob/master/src/fiber.js#L85

this.init.apply(this, arguments);

apply expects the arguments to be an array, whereas, it is an array like object.

The fix is simple ->

this.init.apply(this, ArrayProto.slice.call(arguments));