You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this works
mingo._internal().computeValue({l1: {l2: [{l3: [{ a: 666}]}]}}, '$l1.l2.l3.a');
// this throws an exception
mingo._internal().computeValue({l1: {l2: [{l3: [{ a: 666}]}, {l4: 'some prop'}]}}, '$l1.l2.l3.a');
Thrown exception:
TypeError: Cannot read property 'a' of undefined
at getValue (path/to/project/node_modules/mingo/dist/mingo.js:3545:13)
at _loop (path/to/project/node_modules/mingo/dist/mingo.js:3617:15)
at resolve (path/to/project/node_modules/mingo/dist/mingo.js:3625:16)
at path/to/project/node_modules/mingo/dist/mingo.js:3605:16
at Array.map (native)
at _loop (path/to/project/node_modules/mingo/dist/mingo.js:3604:21)
at resolve (path/to/project/node_modules/mingo/dist/mingo.js:3625:16)
at Object.computeValue (path/to/project/node_modules/mingo/dist/mingo.js:3840:12)
at repl:1:19
at sigintHandlersWrap (vm.js:22:35)
It seems like computeValue is trying to find a property a in 'some prop'.
The text was updated successfully, but these errors were encountered:
* filter out empty values from collection. fix#65
* correct NaN comparison in unit tests. fixes#66
* fix tests for $substrCP
* fix $substrBytes
* fix comparison operators by type checkin
* filter out empty values from collection. fix#65
* correct NaN comparison in unit tests. fixes#66
* fix tests for $substrCP
* fix $substrBytes
* fix comparison operators by type checkin
Repro step:
Thrown exception:
It seems like computeValue is trying to find a property
a
in'some prop'
.The text was updated successfully, but these errors were encountered: