Skip to content

Commit

Permalink
Do not use Buffer without 'new'
Browse files Browse the repository at this point in the history
  • Loading branch information
zapu committed Oct 27, 2016
1 parent bc53f1b commit a11b287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
@@ -1,5 +1,7 @@
language: node_js
node_js:
- "node"
- "6"
- "5"
- "4"
notifications:
Expand Down
2 changes: 1 addition & 1 deletion test/files/buffer_shift_right.iced
Expand Up @@ -24,7 +24,7 @@ exports.test_buffer_shift_right = (T,cb) ->

# We need to add a leading '0' back so that we still have
# 4 bytes of data, so compare works to a standard 32-bit integer
b3 = Buffer.concat [ Buffer(0 for [0...(shift >> 3)] ), b3 ]
b3 = Buffer.concat [ new Buffer(0 for [0...(shift >> 3)] ), b3 ]
T.assert bufeq_fast(b3,b2), "Buffer #{j}, shift=#{shift}"

cb()
Expand Down

0 comments on commit a11b287

Please sign in to comment.