refactor: extract js
and js/modulestest
parts that are to do with setupping the js environment into a single place
#4069
Labels
Currenlty both the
js
package andjs/modulestest
do a number of things to configure Sobek.runtime and modules.ModuleSystem in order to have the same behaviour.This still doesn't actually make it so and does require that a number of realistically internal details are exported but are in practice only meant to be used internally:
k6/js/common/bridge.go
Line 71 in ddc3b0b
Likely many more.
It also happens that we have two implementations that make it harder to work around.
The text was updated successfully, but these errors were encountered: