Available on crate feature
javascript only.Expand description
The boa-backed Cascade — a document’s own scripts, run.
Behind the default-off javascript feature.
A boa-backed Cascade: a document’s own scripts, run.
Behind the default-off javascript feature; with it off, boa_engine is not
in the dependency tree at all.
A script reaches no I/O. Doc.submitForm, Doc.print, app.launchURL
and the rest are transcript lines a host reads back through
ScriptCascade::transcript, so a URL or a form’s bytes come back rather
than going out; nothing opens a socket, a file or a process.
A script that exhausts a sandbox limit refuses rather than accepting.
Limits bounds loops, recursion and stack depth; not heap or regex
backtracking.
Re-exports§
pub use model::AnnotModel;pub use model::DocumentModel;pub use model::FieldModel;pub use model::FieldModelFlags;pub use model::FieldModelKind;pub use transcript::TranscriptLine;
Modules§
- model
- What the host tells the realm about the document, and about its fields.
- transcript
- What a script asked the host to do, as data the host reads.
- zone
- The timezone the engine’s
Datesees.
Structs§
- Build
Error - Building a realm failed, which only a broken engine build can cause.
- Field
Actions - The ten
/AAentries a field can carry, as their JavaScript source. - Script
Cascade - A
boa-backedCascade. - Script
Config - What a scripting session is allowed to do, and what it sees.
- Script
Failure - One script that stopped, named and explained.
Enums§
- Script
Stop - Why a script did not finish.
Constants§
- GOLDEN_
CLOCK_ SECS - The instant the goldens were recorded at, in seconds since the epoch: what a conformance run must freeze its clock to.
- GOLDEN_
FILE_ PATH - The file path the goldens were recorded with, which is the test harness’s own and not any real file’s.
- GOLDEN_
PRINTD_ OFFSET_ SECS - The offset
util.printdapplies when the goldens were recorded, which is not the oneDateuses: a flatGMT-0800, with no daylight saving, whatever the date. - GOLDEN_
TIMEZONE - The timezone the engine’s
Datesaw when the goldens were recorded:TZ=America/Los_Angeles, as V8 resolves it — which isGMT-0700for the fixtures’ July dates andGMT-0800for their December ones.