// expect: Cannot find name 'setTimeout' // expect: Cannot find name 'Intl' // expect: Cannot find name 'Proxy' // expect: Cannot find name 'WeakRef' // Script plugins run in psychoscript with no DOM/Node timers or omitted JS globals. import { define } from "opencode:plugin" export default define((setup) => { setup.command({ name: "globals.bad" }, () => { setTimeout(() => {}, 100) void new Intl.NumberFormat("en-US") void new Proxy({}, {}) void new WeakRef({}) }) })