Skip to content

Commit 16bf212

Browse files
Merge pull request then#44 from chrissrogers/smooth-value-promise-inheritance
Avoids an unnecessary Object.create call
2 parents 75d18a8 + ac71467 commit 16bf212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function ValuePromise(value) {
2323
})
2424
}
2525
}
26-
ValuePromise.prototype = Object.create(Promise.prototype)
26+
ValuePromise.prototype = Promise.prototype
2727

2828
var TRUE = new ValuePromise(true)
2929
var FALSE = new ValuePromise(false)

0 commit comments

Comments
 (0)