Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Switch XorNames from ref-array to JS Array #64

Merged
merged 2 commits into from
Apr 27, 2017

Conversation

gnunicorn
Copy link
Contributor

And fix the tests that break that.

Previously we were leaking out ref-array objects here, but that caused
troubles when they were used at other parts of the API. Namely if they
were serialised without being converted. In order to make things easier
we are now always copying them into a JS Array before returning them in
the API call and are copying back if they are given as such.
@coveralls
Copy link

coveralls commented Apr 26, 2017

Coverage Status

Coverage increased (+0.2%) to 84.984% when pulling 760383a on gnunicorn:xor-actual-array into f438ee3 on maidsafe:master.

Internally we are using ref-array structs when dealing with data_map_names
and since the latest change this has been a JS array instead. This checks
for that when the (nfs) File Object is created and converts it into the
proper ref-array type again.
@coveralls
Copy link

coveralls commented Apr 27, 2017

Coverage Status

Coverage increased (+0.2%) to 84.984% when pulling 18642a6 on gnunicorn:xor-actual-array into f438ee3 on maidsafe:master.

@hitman401 hitman401 merged commit b539de0 into maidsafe-archive:master Apr 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants