Javascript – How to create ES Module context with eval?
I have a Scheme interpreter written in JavaScript called LIPS. It's all ES Module. But as part of the standard library I've created require function that use code like this: import { createRequire } from 'module'; const require = createRequire(import.meta.url);…