import { describe, it, expect } from "bun:test"; it("shadow realm works", () => { const red = new ShadowRealm(); globalThis.someValue = 1; // Affects only the ShadowRealm's global const result = red.evaluate("globalThis.someValue = 2;"); expect(globalThis.someValue).toBe(1); expect(result).toBe(2); }); cation/atom+xml'/>
aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/code-simplification-neql-define.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-01-03[streams] speed up `Readable` in some cases (#1708)Gravatar Alex Lam S.L 3-14/+140
2023-01-03Fix crash in BufferListGravatar Jarred Sumner 1-2/+2