Skip to content

Commit bec21d6

Browse files
committed
fix: avoid to throw literal exception
1 parent 4de3396 commit bec21d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function isPromise(object: any) {
4848
// tslint:disable-next-line:triple-equals
4949
return Promise.resolve(object) == object;
5050
} else {
51-
throw 'Promise not supported in your environment';
51+
throw new Error('Promise not supported in your environment');
5252
}
5353
}
5454
export function get(object: any, path: string) {

0 commit comments

Comments
 (0)