"GocciaScript" is a new (2026) open source "drop of JavaScript" in FreePascal. It implements a modern subset of ECMAScript.
https://github.com/frostney/GocciaScript
Licence: MIT © Johannes Stein
GocciaScript implements a modern subset of ECMAScript:
let/const, arrow functions, classes with private fields, for...of, async/await, ES modules (named only), decorators, and TypeScript-style type annotations.
Features that are error-prone, redundant, or security risks (var, function keyword, ==/!=, eval, traditional loops) are intentionally excluded.
Built-in Objects:
console, Math, JSON, JSON5, TOML, YAML, JSONL, CSV, TSV, Object, Array, Number, String, RegExp, Symbol, Set, Map, WeakSet, WeakMap, Promise, Temporal, Iterator, Proxy, Reflect, ArrayBuffer, SharedArrayBuffer, TypedArrays (Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float16Array, Float32Array, Float64Array, BigInt64Array, BigUint64Array) with ArrayBuffer and SharedArrayBuffer backing, fetch, Headers, Response (WHATWG Fetch — GET/HEAD only), URL, URLSearchParams, TextEncoder, TextDecoder, plus error constructors (Error, TypeError, ReferenceError, RangeError, DOMException).