mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
0fdd766b6b
The vm/Proxy sandbox from the previous commit crashed vm.createContext on the CI
runner ("Cannot read properties of undefined (reading 'prototype')") — a permissive
`has` trap doesn't survive Node's vm internals there. Revert to the original
`new Function` harness and instead inject `Node` (and `HTMLElement`) as explicit
params. This repo's page script never references `Node`, yet the CI runner threw
"Node is not defined" evaluating it (a stray DOM-global reference resolved against
Node.js's sparse global scope); binding `Node` to an injected stub makes that
identifier resolve regardless of host, which is a guaranteed fix for that exact
ReferenceError with none of the vm fragility.