main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
274 bytes
|
Line | |
---|
1 | import _isFunction from "./_isFunction.js";
|
---|
2 | import _toString from "./_toString.js";
|
---|
3 | export default function _assertPromise(name, p) {
|
---|
4 | if (p == null || !_isFunction(p.then)) {
|
---|
5 | throw new TypeError('`' + name + '` expected a Promise, received ' + _toString(p, []));
|
---|
6 | }
|
---|
7 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.