From f5a45ebc2d0a5baeee680374785756fc83f3b64f Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Thu, 11 Apr 2019 15:32:33 -0700 Subject: [PATCH 1/2] Ensure wildcard arguments get undefined treatment. Fixes #5428. --- lib/legacy/legacy-data-mixin.js | 3 ++- test/unit/legacy-data.html | 48 +++++++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 3 deletions(-) diff --git a/lib/legacy/legacy-data-mixin.js b/lib/legacy/legacy-data-mixin.js index b2a255386d..d3d84088e2 100644 --- a/lib/legacy/legacy-data-mixin.js +++ b/lib/legacy/legacy-data-mixin.js @@ -94,7 +94,8 @@ export const LegacyDataMixin = dedupingMixin(superClass => { // undefined or not. Multi-property observers must have all arguments defined if (this._legacyUndefinedCheck && vals.length > 1) { for (let i=0; i `[${inlineSingleDep}]`); this.computeMulti = sinon.spy((inlineMultiDep1, inlineMultiDep2) => `[${inlineMultiDep1},${inlineMultiDep2}]`); + this.wildcardObserver = sinon.spy(); }, throws() { throw new Error('real error'); @@ -145,6 +149,18 @@ + + + + + + + +