Skip to content

Commit 2b0214f

Browse files
author
Guillaume Chau
committed
fix(clone): then error
1 parent f6f4fa7 commit 2b0214f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-backend/src/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ export function installHook (target) {
519519
// if the object cannot / should not be cloned, don't
520520
if (
521521
// promise-like
522-
typeof object.then === 'function' ||
522+
(hasOwnProperty.call(object, 'then') && typeof object.then === 'function') ||
523523
// errors
524524
object instanceof Error ||
525525
// weakmaps

0 commit comments

Comments
 (0)