Haxe/js API documentation

To get started with the Haxe js target:


package js

..
html
Browser

Cookie

Date

Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January 1970 UTC.

Error

EvalError

Function

JsIterator

JsIterator is prefixed with Js to avoid name clashes with standard Iterator structure.

JsIteratorStep

Object returned by JsIterator.next.

Lib

Platform-specific JavaScript Library. Provides some platform-specific functions for the JavaScript target.

Map

The (native) JavaScript Map object holds key-value pairs. Any value (both objects and primitive values) may be used as either a key or a value.

MapEntry

Key/value access helper for js.Map.entries() and js.Set.entries().

Object

The js.Object constructor creates an object wrapper.

ObjectPropertyDescriptor

See:

ObjectPrototype

Type for

Promise

The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value.

PromiseHandler

Handler type for the Promise object.

RangeError

ReferenceError

RegExp

Native JavaScript regular expressions.

RegExpMatch

Selection

Set

The js.Set object lets you store unique values of any type, whether primitive values or object references.

Symbol

Syntax

Generate JavaScript syntax not directly supported by Haxe. Use only at low-level when specific target-specific code-generation is required.

SyntaxError

Thenable

A value with a then method.

ThenableStruct

TypeError

URIError