Skip to content

Running in Bun #561

@rerik

Description

@rerik

Starting with version 3.10.0, vm2 no longer works in bun

echo 'import { VM } from "vm2"; const vm = new VM();' | bun run -
TypeError: Attempted to assign to readonly property.
      at <anonymous> (/home/bun/app/node_modules/vm2/lib/setup-sandbox.js:758:7)
      at new VM (/home/bun/app/node_modules/vm2/lib/vm.js:283:81)
      at /home/bun/app/[stdin]:1:38
      at loadAndEvaluateModule (2:1)

Bun v1.3.11 (Linux x64 baseline)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions