We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de3396 commit bec21d6Copy full SHA for bec21d6
src/helpers.ts
@@ -48,7 +48,7 @@ export function isPromise(object: any) {
48
// tslint:disable-next-line:triple-equals
49
return Promise.resolve(object) == object;
50
} else {
51
- throw 'Promise not supported in your environment';
+ throw new Error('Promise not supported in your environment');
52
}
53
54
export function get(object: any, path: string) {
0 commit comments