mcollina / autocannon

fast HTTP/1.1 benchmarking tool written in Node.js
MIT License
7.86k stars 326 forks source link

fix Cannot access 'connection' before initialization #486

Closed moty66 closed 1 year ago

moty66 commented 1 year ago

trying with node version v16.14.2 I get this error

node samples/customise-individual-connection.js 
/Users/.../workspace/autocannon/samples/customise-individual-connection.js:27
    client.setBody('connection number', connection++)
           ^

ReferenceError: Cannot access 'connection' before initialization
... 
...