diff --git a/diff.js b/diff.js index f6cc674..ffc3b13 100644 --- a/diff.js +++ b/diff.js @@ -2252,7 +2252,11 @@ var DiffPrototype = { }, check: function(obj){ - return Object.create(this.constructor.types).check(this.diff, obj) }, + return Object.assign( + Object.create(this.constructor.types), + // get the actual placeholders... + this.placeholders) + .check(this.diff, obj) }, patch: function(obj){ return Object.assign( Object.create(this.constructor.types),