aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/shadow.test.js
blob: 3fffcac9024c88cfcdbc9f0b869d11ab957a18b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);
});
on-docs Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/core-image-ssg (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-02-23Fixes edge middleware calling nested routes (#10215)Gravatar Matthew Phillips 2-1/+6
2024-02-23Adds an error message for non-string transition:name values (#10205)Gravatar Martin Trapp 2-0/+8
2024-02-23[ci] formatGravatar Furkan Erdem 1-1/+1
2024-02-23Fix(node): Custom headers are not present in responses from standalone Node s...Gravatar Furkan Erdem 8-0/+163