Skip to content

Commit

Permalink
comment [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
onury committed Sep 3, 2020
1 parent ce5f834 commit 4b115ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/notation.glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,8 @@ class Glob {
if (indexA === indexB) return; // move to next
// console.log(indexA, a.glob, 'vs', b.glob);

// e.g. ['x.y.z', '[1].x', 'c'] » impossible! the tested source
// object cannot be both an array and an object.
if (a.isArrayGlob !== b.isArrayGlob) {
throw new NotationError(`Integrity failed. Cannot have both object and array notations for root level: ${JSON.stringify(original)}`);
}
Expand Down

0 comments on commit 4b115ed

Please sign in to comment.