small medium large xlarge

27 Jan 2014, 04:06
Phil Hadviger (1 post)


On page 52 and 53 you use, arguments) in all of the methods.

For me this results in “TypeError: Array.prototype.slice called on null or undefined” no on node.js 0.10.x with or w/o –harmony passed in. seems to work for me, but I was curious if I’m misunderstanding something or doing something wrong that is causing me to see this error. I’m still somewhat new to JS, and therefore wanted to confirm.

Outside of this, the book has been amazing so far.

30 Jan 2014, 00:14
Steven Harris (4 posts)

I had the same experience? Typo or are we misunderstanding?

17 Mar 2014, 00:47
Ivan johns (2 posts)


router.on('message', function() {
	let frames = Array.apply(null, arguments);

dealer.on('message', function() {
	let frames = Array.apply(null, arguments);
13 Apr 2014, 19:50
Christophe Leroy (2 posts)

Got the same problem - but on top of that IPC are not working on Windows 7 for 0MQ. I am using tcp:// instead of ipc://filer-read.ipc … It was breaking on … but it works with Ivan’s suggestion (Array.apply(null, arguments)).

26 May 2014, 11:19
Jim R. Wilson (69 posts)

This is a typo and I should fix it. I originally had Array.apply(null, arguments) and meant to change it to

  You must be logged in to comment