Static variables

staticread onlyasyncIterator:Symbol

A method that returns the default AsyncIterator for an object.

staticread onlyiterator:Symbol

A method returning the default iterator for an object.

Static methods


Searches for existing symbols with the given key and returns it if found. Otherwise a new symbol gets created in the global symbol registry with this key.


Retrieves a shared symbol key from the global symbol registry for the given symbol.



To create a new primitive symbol, use new Symbol() with an optional string as its description.

NOTE: Unlike in plain JavaScript, new Symbol() syntax is used in Haxe. This generates a Symbol(...) expression as required by the JavaScript specification.



Retrieve symbol from a given object.

NOTE: This is a Haxe-specific method that generates an object[symbol] expression.


Returns a string containing the description of the Symbol.