Skip to content

"forEachChild" method provides different results for Cache and Gtm providers  #21

@killmenot

Description

@killmenot

Hi,

The following test falls when 'gtm' provider is used for running integration tests
https://github.com/robtweed/ewd-document-store/blob/master/spec/integration/ewd-document-store.spec.js#L295

It seems that works fine for InterSystem Caché (have no chance to run it without cache.node) but fails when Gtm used.

The problem is here:
(1) https://github.com/robtweed/ewd-document-store/blob/master/lib/proto/forEach.js#L83
(2) https://github.com/robtweed/ewd-document-store/blob/master/lib/proto/forEach.js#L87

For Gtm (2) returns the following result

node before =  '{"global":"temp","subscripts":["foo","Davisþ"]}'
end / result = undefined

However, if I comment out (1), (2) returns the following:

node before =  '{"global":"temp","subscripts":["foo","Davis"]}'
end/result =  'Douglas'

and seems works.

Also, please note that FIELD_MARK also used here
https://github.com/robtweed/ewd-document-store/blob/master/lib/proto/forEach.js#L75

@robtweed Do you have any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions