Skip to content

Commit fe84b6c

Browse files
authored
Merge pull request #825 from LinusU/drop-0.8
Drop support for Node.js 0.8
2 parents 7704d8d + 1b6509d commit fe84b6c

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ node_js:
44
- '4'
55
- '0.12'
66
- '0.10'
7-
- '0.8'
87
addons:
98
apt:
109
sources:
@@ -18,6 +17,5 @@ addons:
1817
env:
1918
- CXX=g++-4.9
2019
before_install:
21-
- if [[ $TRAVIS_NODE_VERSION == 0.8 ]]; then npm install -g [email protected]; fi
2220
- npm explore npm -g -- npm install node-gyp@latest
2321
sudo: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"standard": "^7.1.1"
4040
},
4141
"engines": {
42-
"node": ">=0.8.0"
42+
"node": ">=0.10.0"
4343
},
4444
"main": "./lib/canvas.js",
4545
"license": "MIT"

test/canvas.test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,7 @@ describe('Canvas', function () {
418418
var buf = canvas.toBuffer('raw');
419419
var stride = canvas.stride;
420420

421-
// emulate os.endianness() (until node v0.8 support is dropped)
422-
var endianness = (function() {
423-
var b = new ArrayBuffer(4);
424-
var u32 = new Uint32Array(b);
425-
var u8 = new Uint8Array(b);
426-
u32[0] = 1;
427-
return u8[0] ? 'LE' : 'BE';
428-
}());
421+
var endianness = os.endianness();
429422

430423
function assertPixel(u32, x, y, message) {
431424
var expected = '0x' + u32.toString(16);

0 commit comments

Comments
 (0)