Skip to content
Projects

tc39/proposal-shadowrealm

View on GitHub

tc39/proposal-shadowrealm has 1,589 GitHub stars and 70 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 03:34 UTC. Last push 2025-02-10.

How these counts are measured

ECMAScript Proposal, specs, and reference implementation for Realms

Measured star growth

in 24h
0
in 7 days
Update delayed
in 15 days
Update delayed
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

ECMAScript spec proposal for ShadowRealm API

Status

Champions

  • @dherman
  • @caridy
  • @erights
  • @leobalter
  • @rwaldron
  • @legendecas

Index

What are ShadowRealms?

ShadowRealms are a distinct global environment, with its own global object containing its own intrinsics and built-ins (standard objects that are not bound to global variables, like the initial value of Object.prototype).

See more at the explainer document.

API (TypeScript Format)

declare class ShadowRealm {
    constructor();
    importValue(specifier: string, bindingName: string): Promise<PrimitiveValueOrCallable>;
    evaluate(sourceText: string): PrimitiveValueOrCallable;
}

See some examples in the Explainer file.

Presentations

History

Contributing

Updating the spec text for this proposal

The source for the spec text is located in spec.html and it is written in ecmarkup language.

When modifying the spec text, you should be able to build the HTML version by using the following command:

npm install
npm run build
open dist/index.html

Alternatively, you can use npm run watch.

Explore related projects