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
There appears to be an under-the-hood inconsistency between a Wrap()-derived container and a New()-derived container. This causes both .Delete() and .DeleteP() to fail when called on Wrap()-derived containers.
This, however, panics, returning a 'not an object or array' error.
The difference occurs at gabs.go:471.
The New snippet has an actual map to operate on, containing map[string]interface {} {"A": 1, "B": 2} beneath the hood.
The Wrap container, however, is just data{A: 1, B: 2} and therefore fails the map type assertion.
I currently have a PR in the works to fix this.
The text was updated successfully, but these errors were encountered:
There appears to be an under-the-hood inconsistency between a Wrap()-derived container and a New()-derived container. This causes both
.Delete()
and.DeleteP()
to fail when called on Wrap()-derived containers.Clock the following samples:
New
This works as intended, returning {"A":1}.
Wrap
This, however, panics, returning a 'not an object or array' error.
The difference occurs at gabs.go:471.
The New snippet has an actual map to operate on, containing
map[string]interface {} {"A": 1, "B": 2}
beneath the hood.The Wrap container, however, is just
data{A: 1, B: 2}
and therefore fails the map type assertion.I currently have a PR in the works to fix this.
The text was updated successfully, but these errors were encountered: