From b01c82036cc4464a648fff15195c0ac038a284f3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 28 Aug 2018 02:26:26 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- diff.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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),