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
As of current, neither eval('await 1') nor import { runInNewContext } from 'node:vm'; console.log(await runInNewContext('await (1 + 1)')) work as expected.
I am not surprised to see this not work in Node, but in Bun, it would be ideal if TLA was supported in these contexts and behaved such that the result can be awaited on the call site.
What is the feature you are proposing to solve the problem?
TLA support in the eval method and the methods of the node:vm module.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered:
What is the problem this feature would solve?
As of current, neither
eval('await 1')
norimport { runInNewContext } from 'node:vm'; console.log(await runInNewContext('await (1 + 1)'))
work as expected.I am not surprised to see this not work in Node, but in Bun, it would be ideal if TLA was supported in these contexts and behaved such that the result can be
await
ed on the call site.What is the feature you are proposing to solve the problem?
TLA support in the
eval
method and the methods of thenode:vm
module.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: