[8.x](backport #41541) go.mod - use elastic/goja fork #41543
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Move to the elastic/goja fork instead of andrewkroh/goja. This is the same code just moved into the elastic org and tagged with
v2019-01-28+beats
.For background, this fork contains a small change to goja that allows arbitrary map types (such as elastic's "MapStr" type) to be treated as javascript objects without requiring any conversion.
Also note that since the time of the fork in 2019, there is now a path to accomplish this without a fork by implementing a
toValue(r *goja.Runtime) goja.Value
method on MapStr. It would mean introducing a direct dependency on goja. A tested example of can be found in the linked gist.https://gist.github.com/andrewkroh/19eccc0844bb935222914234c9510aa1
https://github.com/elastic/goja/releases/tag/v2019-01-28%2Bbeats
This is an automatic backport of pull request #41541 done by [Mergify](https://mergify.com).