part 1 of a fix to attr viaibility bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-09-26 03:04:33 +03:00
parent c57b42cfd1
commit 97fa4718ae

12
diff.js
View File

@ -736,16 +736,16 @@ object.makeConstructor('AT', Object.assign(Object.create(LogicType.prototype), {
[] []
// pattern key,,, // pattern key,,,
: k instanceof LogicType ? : k instanceof LogicType ?
Object.entries(o) [...getAllKeys(o)]
.filter(function(e){ .filter(function(n){
return cmp(k, e[0], context) }) return cmp(k, n, context) })
.map(function(e){ .map(function(n){
return e[1] }) return o[n] })
// normal key... // normal key...
// NOTE: we are not using 'k in o' here because // NOTE: we are not using 'k in o' here because
// only objects are supported by the in // only objects are supported by the in
// operator and we can get any value... // operator and we can get any value...
: Object.keys(o).indexOf(k) >= 0 ? : getAllKeys(o).has(k) ?
[o[k]] [o[k]]
// key not in container... // key not in container...
: [] }) : [] })