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
Currently a call to arena dispose doesn't remove variables from the context.
constarena1=newArena(vm,{isMarshalable: 'json'})arena1.expose({foo: 'bar'})arena1.evalCode(`return foo`)// returns bar as expectarena1.dispose()constarena2=newArena(vm,{isMarshalable: 'json'})// I wasn't expecting this to work after the dispose abovearena2.evalCode(`return foo`)// returns 'bar' unexpected
Is it possible to reset the arena? I'd like to share context between executions, as we apply polyfills to the run time, this takes a long time so I was trying to share the context between a few different evaluations.
The text was updated successfully, but these errors were encountered:
tim-field
changed the title
Unset all objects created in arena
Unset all values created in arena
Jul 31, 2024
Currently a call to arena dispose doesn't remove variables from the context.
Is it possible to reset the arena? I'd like to share context between executions, as we apply polyfills to the run time, this takes a long time so I was trying to share the context between a few different evaluations.
The text was updated successfully, but these errors were encountered: