Skip to content
Unverified Commit 37763ba9 authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Fix js runtime concurrency issue. (#542)

Reference functions by their global object key instead of calling
.Extract() on the goja value, which would keep a reference to runtime
used for function registration, causing concurrency issues under
concurrent loads.

Lookup the function indentifiers in the js code AST during registration.
This disallows registring inlined (anonymous) functions, or invoking
the initializer outside the scope of the InitModule function.
parent 2b88b543
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment