Expand description
Web-platform globals with no upstream in llrt, written here so the
runtime has exactly one implementation of each.
Web-platform globals with no upstream in llrt: atob / btoa,
structuredClone, performance, FormData, the compression streams
and the timers.
The timers are not installed by init: they carry host state across
a scheduled callback, so the host installs them with its own
[timers::CallbackPolicy].
Modules§
- blob_
bytes - Reading bytes back out of a
BloborFile. - compression
- WHATWG
CompressionStream/DecompressionStream. - form_
data - WHATWG
FormData(spec subset, no deps; multipart serialization studied from the read-only llrt reference).append/set/get/getAll/has/delete/keys/values/entries/forEach; string,BloborFilevalues.entries/keys/values/[Symbol.iterator]return real live iterators (seesuper::js_iterator). A file entry reads back as aFilecarrying the filename it was stored under, and appending aFilesupplies that filename without repeating it. The class holds entries and nothing else: a host that puts aFormDataon the wire readsFormDataJs::entries_sliceand serializes with its own multipart writer, and hands parsed bodies back throughFormDataJs::from_entries. - js_
iterator - The one
{ value, done }iterator protocol used by every web-platform collection class (Headers,URLSearchParams,FormData). - performance
performance: High Resolution Time, User Timing and the Performance Timeline.- timers
setTimeout/setInterval/clearTimeout/clearInterval/setImmediate/queueMicrotask— native,ctx.spawn-backed (the timer future lives on the host’s VM executor, so callbacks fire between executes and while a script is parked on a host await; dropping the runtime aborts every armed timer).
Functions§
- init
- Install
atob,btoa,structuredClone,performance,FormDataandCompressionStream/DecompressionStream.