Skip to content

Commit

Permalink
Require Node.js 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 3, 2019
1 parent d48c0fb commit ac0ef50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -2,4 +2,3 @@ language: node_js
node_js:
- '10'
- '8'
- '6'
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -7,7 +7,6 @@ class PLazy extends Promise {
});

this._executor = executor;
this._promise = null;
}

static from(fn) {
Expand All @@ -18,6 +17,7 @@ class PLazy extends Promise {

then(onFulfilled, onRejected) {
this._promise = this._promise || new Promise(this._executor);
// eslint-disable-next-line promise/prefer-await-to-then
return this._promise.then(onFulfilled, onRejected);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd"
Expand Down

0 comments on commit ac0ef50

Please sign in to comment.