Using Node-amqp v0.2.4, Node v0.10.36; RabbitMQ v3.1.3 and v3.5, I'm getting a strict mode error in my connection.on('error', ...) when declaring an exchange:
Connection event error: [TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them] TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
at Exchange._onMethod (/home/vagrant/docker/hubot/node_modules/simple-message-helper/node_modules/amqp/lib/exchange.js:108:39)
...
Problem point
On line 108 of exchange.js, the original is this:
"arguments":this.options.arguments || {}
Looks like a similar snippet is used in queue.js - during my use I'm just not hitting it there for some reason.
Workaround
Dropping this.options.arguments || avoids the error.
Problem
Using Node-amqp v0.2.4, Node v0.10.36; RabbitMQ v3.1.3 and v3.5, I'm getting a strict mode error in my
connection.on('error', ...)
when declaring an exchange:Problem point
On line 108 of exchange.js, the original is this:
Looks like a similar snippet is used in queue.js - during my use I'm just not hitting it there for some reason.
Workaround
Dropping
this.options.arguments ||
avoids the error.Much gratitude
You make the world a better place.
Full debug output: