Documentation
¶
Overview ¶
Package test262 provides a runner for the official ECMAScript conformance suite (Test262), located under reference/test262. It parses each test's YAML frontmatter, assembles the required harness includes, executes the test with the engine under a timeout, and classifies the outcome against the test's declared expectation (positive or negative).
It is deliberately conservative: tests using features gojs does not implement (modules, raw/generated forms, and a configurable feature denylist) are reported as skipped rather than failed, so the pass rate reflects real conformance of implemented features. Async tests (flags: [async]) are run: the runner supplies $DONE and inspects the reported completion.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct {
Includes []string
Flags map[string]bool
Features []string
NegType string // expected error constructor name (negative tests)
NegPhase string // "parse", "resolution", or "runtime"
IsNegative bool
}
Meta holds the parsed subset of a test's frontmatter that the runner needs.