Fix bug with overlapping timestamp declarations

This commit is contained in:
Zaid Abdulla committed 2018-03-24 00:39:58 -07:00
1 parent bc8619e199
commit eb806342b8
1 file changed
+2 -2
+2 -2
View File
@@ -1163,8 +1163,8 @@ processDeclarations = (sessionContext, allDeclareTimestamps, allDeclareAttribute
if currentPath.wildcard == 0
if attrs = allDeclareAttributeTimestamps.get(path)
if declareAttributeTimestamps
delcareAttributeTimestamps = Object.assign({}, declareAttributeTimestamps)
declareAttributeTimestamps[k] = Math.max(v, attrs[k] or 0) for k, v of attrs
declareAttributeTimestamps = Object.assign({}, declareAttributeTimestamps)
declareAttributeTimestamps[k] = Math.max(v, declareAttributeTimestamps[k] or 0) for k, v of attrs
else
declareAttributeTimestamps = attrs