Skip to content

Commit

Permalink
Add arg length check
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 14, 2019
1 parent 52a559f commit 6139e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/property-effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ export const PropertyEffects = dedupingMixin(superClass => {
}
// When the `legacyUndefined` flag is enabled, pass a no-op value
// so that the observer, computed property, or compound binding is aborted.
if (legacyUndefined && value === undefined) {
if (legacyUndefined && value === undefined && args.length > 1) {
return NOOP;
}
values[i] = value;
Expand Down

0 comments on commit 6139e88

Please sign in to comment.