Language

20 features: 1 implemented, 15 partial, 2 planned, 2 excluded. Back to all areas.

FeatureStatusWhat worksTest
Arrow functionspartialSimple and parenthesized parameters, expression or block bodies, shared lexical bindings and lexical this. Async arrows, default values, rest and destructuring remain pending.tests/closures.ts
assignmentspartialSimple and compound numeric assignments. A write to an initialized immutable local or capture throws TypeError when executed. Simple assignment evaluates its right-hand side before detecting a temporal dead zone. Compound assignment reads the binding first. See tests/immutable-bindings.js.
asyncpartialAn async function is a generator body whose entry starts the promise driver: each await suspends it, and the driver resumes it from a reaction job with the settled value or reason, so the host drives every resumption through the session's job queue. Async generators run on a sibling driver; for await runs in both. A module's top-level await makes its module steps an async body, which the start calls and settles on once the jobs have run (d-tla-settle).
classespartialBase class declarations and expressions create distinct construct-only functions, including default constructors. Instance and static methods define writable nonenumerable properties under literal, computed and Symbol keys. Methods capture the immutable inner class name; declarations initialize their separate mutable outer binding in source order. Derived classes link constructor and instance prototype chains. Explicit and default super constructors forward new.target, initialize this once and enforce the derived return rules. See tests/derived-classes.js. Method reads and calls through super retain the defining home object and actual receiver across borrowed calls and arrows (tests/super-properties.js). Simple and compound writes through super use the receiver-aware Reflect.set operation and throw on rejection. Getter and setter declarations combine into a single nonenumerable property for static or instance names, including symbols (tests/accessor-declarations.js). Public instance and static fields define own data properties. Their computed names run once before static fields and blocks execute in source order. Base instances initialize before the constructor body; derived instances initialize immediately after successful super(), including foreign objects returned by a superclass. See tests/class-fields.js. Private names and brands remain open.tests/classes.js
control flowpartialReturn, if/else, while, do/while, classic for, break, continue and short-circuit logic. A single statement or a block can form the body. An else belongs to the nearest unmatched if. A continue in a do/while reaches its trailing condition.
dynamic importplannedResolve against the embedder module loader using explicit version and resource policy.
exceptionspartialOrdinary functions propagate thrown values across call frames and preserve object identity across catch and rethrow. Numeric generators can suspend while unwinding. Explicit resource disposal remains open.tests/exceptions.ts
functionpartialNamed functions support specialized direct calls and first-class references. Generic entries receive boxed arguments and a strict-mode receiver. Nested declarations and named or anonymous function expressions support lexical capture and recursive calls.
generatorspartialNumeric generator exports implement next, return and throw across nested try/catch/finally. A finalizer can yield, request a host effect or replace a pending completion. Delegated yield and generator objects remain planned.
iterationpartialBuilt-in array, string, Set and Map iterators advance through for-of and collection constructors. User-defined Symbol.iterator hooks and IteratorClose remain open.tests/iterators.ts
JSXexcludedUI-specific source syntax belongs in a separate build step.
let and constpartialBlock-scoped captured bindings share mutable cells. Reads and writes before initialization trap. Loop closures retain distinct per-iteration bindings. Function, block and module scopes support comma-separated identifier declarators with ordered initialization. Classic for-let loops preserve the initializer’s environment separately from each iteration. Destructuring remains pending.
modulepartialNamed exports and explicit relative named imports share a live module binding. Each realm has its own mutable bindings. A host may supply sources up front or resolve each missing source on demand. Initializer expressions evaluate once per realm in dependency order. Literal-only graphs need no executable initializer.
number operationspartialAddition, subtraction, multiplication, division, unary minus and comparisons.
objectspartialOrdinary objects can store string and symbol data properties, inherit from another ordinary object, and retain identity in collections. Prototypes are traversed without C recursion. Data and accessor descriptors, inherited getters and setters, non-extensible objects, deletion and mutable ordinary prototypes are implemented. Some exotic intrinsic prototypes remain in scope.
regular-expression backreferencesplannedCompile a matching path with capture state and an explicit work budget. Finite automata still handle regular fragments.
SCXML datamodelpartialAn optional TinyActors integration runner compiles chart expressions and keeps one guest environment per session. Core executes chart-level scripts and action blocks through separate WASM exports. Script var declarations share the chart data bindings, and the embedder publishes session metadata and current events as host-owned globals. A script is strict code like any other source; its top-level var and function declarations become properties of the session's global object, as ECMA-262 makes them for every Script, and W3C tests 302, 303, 304 (var) and 452 (function) exercise them (d-no-sloppy). The adapter evaluates literal JSON in the guest, normalizes plain text, and retains shallow array copies across nested foreach loops. The SCXML host parses inline and external XML through the TinyActors XML parser. Documents and elements provide documentElement, qualified tag lookup in document order, namespace and attribute inspection. SCXML sends preserve nested DOM values and an invoke can resolve the original XML held by a document. The adapter exposes an inspection subset of the DOM, with XML mutation and text/comment node APIs outside its current surface. The runner resolves companion files from the official fixture index. tests/scxml.c exercises the W3C fixtures selected by the scxml-test target. Full datamodel and protocol coverage remain planned.
string valuespartialImage-backed UTF-16 literals, length, equality, selection, internal string parameters and results, console output and command-line argument joining.
Unicode identifiersimplementedUnicode 17.0 ID_Start and ID_Continue govern literal and escaped names in JavaScript and TypeScript. ASCII dollar and underscore are admitted at the start. Binding lookup compares decoded spellings without normalization. Space_Separator, BOM and the four ECMAScript line terminators delimit names. Literal contents and diagnostics refer to the original source bytes.tests/unicode-identifiers.js
withexcludedLexical binding remains statically resolvable.
At tinyscript commit 0c5984ec; each test is a program that runs the feature.