builtins
Documentation / @wtf/project-wpt / builtins
What a test file’s context has before a repo maps anything in: builtins, the values and
constructors of the WinterTC Minimum Common Web API, and intrinsics, the errors, the
buffers and Promise of the realm the implementations run in.
A fresh realm, as a node:vm context is, has the language’s built-ins of its own realm, and none of the web’s. The
built-ins are this realm’s, as they are: a test of an implementation sees the platform it runs
on. The services of the WinterTC API — fetch, crypto, the timers, performance — and every
other platform service are not among them: a repo maps in what a test needs, as the
implementation under test.
