grafana / xk6-webcrypto

WIP implementation of the WebCrypto specification for k6
GNU Affero General Public License v3.0
7 stars 3 forks source link

Migrate from the direct runtime access throw the go routines #71

Closed olegbespalov closed 4 months ago

olegbespalov commented 5 months ago

What?

During the https://github.com/grafana/xk6-webcrypto/pull/67#discussion_r1562260215 we figured out that it's essential to not have access to the goja runtime inside the go routines because that could lead to the race.

There are places in the module where we have such access; we should migrate them accordingly:

Why?

Having access to the throw routine could lead to the race.