Skip to content

Commit

Permalink
fix(clone): Make sure the 'then' property exists on the object before…
Browse files Browse the repository at this point in the history
… checking if its a function (vuejs#1105)
  • Loading branch information
benjaminprojas authored and Akryum committed Nov 25, 2019
1 parent c4f5c94 commit f6f4fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-backend/src/clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function clone (object, options) {
// if the object cannot / should not be cloned, don't
if (
// promise-like
typeof object.then === 'function' ||
(hasOwnProperty.call(object, 'then') && typeof object.then === 'function') ||
// errors
object instanceof Error ||
// weakmaps
Expand Down

0 comments on commit f6f4fa7

Please sign in to comment.