This does not include any Web, Node, or any other JS environment APIs. Only the things that are guaranteed to exist in the global scope by the ECMAScript standard.
A Note About
snake_case, and Naming Conventions
camelCase naming conventions for functions
and methods, but Rust style is to use
snake_case. These bindings expose
the Rust style
snake_case name. Additionally, acronyms within a method
decode_uri in these
Atomicsobject provides atomic operations as static methods. They are used with
- Iterator returned by
- Any object that conforms to the JS async iterator protocol. For example, something returned by
- An iterator over the JS
- An iterator over the JS
- Any object that conforms to the JS iterator protocol. For example, something returned by
- The result of calling
next()on a JS iterator.
Promiseobject represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.
RangeErrorobject indicates an error when a value is not in the set or range of allowed values.
ReferenceErrorobject represents an error when a non-existent variable is referenced.
TypeErrorobject represents an error when a value is not of the expected type.
URIErrorobject represents an error when a global URI handling function was used in a wrong way.
decodeURI()function decodes a Uniform Resource Identifier (URI) previously created by
encodeURIor by a similar routine.
decodeURIComponent()function decodes a Uniform Resource Identifier (URI) component previously created by
encodeURIComponentor by a similar routine.
encodeURI()function encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two “surrogate” characters).
encodeURIComponent()function encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two “surrogate” characters).
escape()function computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
- Returns a handle to the global scope object.
- The global
isFinite()function determines whether the passed value is a finite number. If needed, the parameter is first converted to a number.
parseFloat()function parses an argument and returns a floating point number, or NaN on error.
parseInt()function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems), or NaN on error.
- Create an iterator over
valusing the JS iteration protocol and
unescape()function computes a new string in which hexadecimal escape sequences are replaced with the character that it represents. The escape sequences might be introduced by a function like
decodeURIComponentare preferred over