Skip to content

API Script Reference

Liu.Yandong.Hanks edited this page Aug 21, 2026 · 4 revisions

Script API Reference

Applies to AuroraScript.JIT 4.0.0.

API Reference · Language Guide

Every entry below links to a dedicated page for a single object rather than to a section of a summary article. Each page documents the object's constructor, static members, and instance members with parameters, return values, boundary behavior, and a minimal AuroraScript example.

On This Page

Core Values and Objects

Object Purpose
Object Object creation, comparison, and copying.
Array Growable general-purpose array.
String Text conversion and processing.
Number Numeric conversion, constants, and parsing.
Boolean Boolean conversion and constants.
Date Date and time value.
Error Script error value.

Typed Arrays

Typed arrays are fixed-length, packed arrays whose element type is chosen at construction. They trade the flexibility of Array for compact storage and predictable numeric behavior.

Signed integer elements:

Object Element type
Int8Array Signed 8-bit integer.
Int16Array Signed 16-bit integer.
Int32Array Signed 32-bit integer.
Int64Array Signed 64-bit integer.

Unsigned integer elements:

Object Element type
UInt8Array Unsigned 8-bit integer.
UInt16Array Unsigned 16-bit integer.
UInt32Array Unsigned 32-bit integer.
UInt64Array Unsigned 64-bit integer.

Other element types:

Object Element type
Float64Array Double-precision floating-point number.
BooleanArray Boolean.

Collections, Text, and Paths

Object Purpose
HashMap Key-value collection.
StringBuffer Incremental string construction.
Regex Regular-expression value.
Path Protocol-aware path value.

Serialization and Typed Documents

Object Purpose
JSON JSON parsing and serialization.
TDoc Typed document reading and writing; see the TDoc format for the text syntax.

Runtime and Utilities

Object Purpose
Math Mathematical constants and functions.
console Output and named timing.
Proxy Dynamic object-access interception.
HotPatch Runtime module updates.
global Global execution object for the current ScriptDomain.
$state and $args Compiler-provided context values rather than constructors.

Notes

  • Type names, member names, and code identifiers are written exactly as the runtime exposes them, so examples can be copied without edits.
  • AuroraScript is not an ECMAScript implementation: only the members documented here are guaranteed to exist, regardless of what a JavaScript engine would provide.
  • Hosts can add or restrict globals; see Host Integration for how the global object is populated.

Clone this wiki locally