Skip to content

Commit

Permalink
Merge pull request #31 from meeber/drop-old-node
Browse files Browse the repository at this point in the history
chore: drop support for Node v0.10
  • Loading branch information
keithamus authored Nov 3, 2016
2 parents 41dfd4b + 4b6245c commit 718922d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ cache:
directories:
- node_modules
node_js:
- 0.10 # to be removed 2016-10-31
- 0.12 # to be removed 2016-12-31
- 4 # to be removed 2018-04-01
- 6 # to be removed 2019-04-01
Expand Down
7 changes: 0 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,6 @@ function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
*/

function objectEqual(leftHandOperand, rightHandOperand, options) {
// This block can be removed once support for Node v0.10 is dropped because
// buffers are properly detected as iterables in later versions.
if (typeof Buffer === 'function' &&
typeof Buffer.isBuffer === 'function' &&
Buffer.isBuffer(leftHandOperand)) {
return iterableEqual(leftHandOperand, rightHandOperand, options);
}
var leftHandKeys = getEnumerableKeys(leftHandOperand);
var rightHandKeys = getEnumerableKeys(rightHandOperand);
if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@
"watchify": "^3.7.0"
},
"engines": {
"node": "*"
"node": ">=0.12"
}
}

0 comments on commit 718922d

Please sign in to comment.