Lines Matching refs:object

302  * global object. Variable declarations made using let and const will be visible globally, but will not be added
303 * to the global object.The value of this is global within the script.
428 * @brief This API queries a JSVM_Value to check if it represents an error object.
556 * @brief This API opens a new scope from which one object can be promoted to the outer scope.
581 * @brief This API promotes the handle to the JavaScript object so that it is valid for the lifetime
706 * buffer from JavaScript, a typed array or DataView object would need to be created.
774 * This API allocates a JavaScript Date object.
790 * The API adds a JSVM_Finalize callback which will be called when the JavaScript object just created has been garbage
791 * collected.The created value is not an object, and therefore does not support additional properties. It is considered
855 * @brief This API creates a JavaScript TypedArray object over an existing ArrayBuffer. TypedArray
878 * @brief This API creates a JavaScript DataView object over an existing ArrayBuffer. DataView
1089 * @param object: JSVM_Value representing JavaScript Object whose prototype to return. This returns
1091 * @param result: JSVM_Value representing prototype of the given object.
1097 JSVM_Value object,
1376 * @brief This API is used to return the JavaScript singleton object that is used to represent the given boolean value.
1390 * @brief This API returns the global object.
1393 * @param result: JSVM_Value representing JavaScript global object.
1402 * @brief This API returns the null object.
1405 * @param result: JSVM_Value representing JavaScript null object.
1414 * @brief This API returns the Undefined object.
1441 * function potentially runs JS code if the passed-in value is an object.
1470 * function potentially runs JS code if the passed-in value is an object.
1485 * on the object as defined. However, there are some differences:It has support
1487 * ECMAScript typeof would detect object.If value has a type that is invalid,
1502 * @brief This API represents invoking the instanceof Operator on the object.
1505 * @param object: The JavaScript value to check.
1506 * @param constructor: The JavaScript function object of the constructor function
1508 * @param result: Boolean that is set to true if object instanceof constructor is true.
1514 JSVM_Value object,
1519 * @brief This API represents invoking the IsArray operation on the object
1523 * @param result: Whether the given object is an array.
1537 * @param result: Whether the given object is an ArrayBuffer.
1551 * @param result: Whether the given JSVM_Value represents a JavaScript Date object.
1649 * @brief This API returns the names of the enumerable properties of object as an array of
1650 * strings. The properties of object whose key is a symbol will not be included.
1653 * @param object: The object from which to retrieve the properties.
1655 * the property names of the object. The API can be used to iterate over result using
1662 JSVM_Value object,
1667 * of this object.
1670 * @param object: The object from which to retrieve the properties.
1675 * that represent the property names of the object. OH_JSVM_GetArrayLength and
1682 JSVM_Value object,
1692 * @param object: The object on which to set the property.
1700 JSVM_Value object,
1708 * @param object: The object from which to retrieve the property.
1716 JSVM_Value object,
1724 * @param object: The object to query.
1726 * @param result: Whether the property exists on the object or not.
1732 JSVM_Value object,
1737 * @brief This API attempts to delete the key own property from object.
1740 * @param object: The object to query.
1749 JSVM_Value object,
1759 * @param object: The object to query.
1761 * @param result: Whether the own property exists on the object or not.
1767 JSVM_Value object,
1776 * @param object: The object on which to set the property.
1784 JSVM_Value object,
1793 * @param object: The object from which to retrieve the property.
1801 JSVM_Value object,
1810 * @param object: The object to query.
1812 * @param result: Whether the property exists on the object or not.
1818 JSVM_Value object,
1826 * @param object: The object from which to set the properties.
1834 JSVM_Value object,
1842 * @param object: The object from which to retrieve the property.
1850 JSVM_Value object,
1859 * @param object: The object to query.
1861 * @param result: Whether the property exists on the object or not.
1867 JSVM_Value object,
1872 * @brief This API attempts to delete the specified index from object.
1875 * @param object: The object to query.
1884 JSVM_Value object,
1890 * on a given object. The properties are defined using property descriptors.
1892 * on the object one at a time, as defined by DefineOwnProperty().
1895 * @param object: The object from which to retrieve the properties.
1903 JSVM_Value object,
1908 * @brief This method freezes a given object. This prevents new properties
1912 * It also prevents the object's prototype from being changed.
1915 * @param object: The object to freeze.
1921 JSVM_Value object);
1924 * @brief This method seals a given object. This prevents new properties
1928 * @param object: The object to seal.
1934 JSVM_Value object);
1937 * @brief This method allows a JavaScript function object to be called from
1946 * @param result: JSVM_Value representing the JavaScript object returned.
1959 * @brief This API allows an add-on author to create a function object in native
1963 * object that is visible to JavaScript, in order for the function to be accessible
1968 * within JavaScript as the new function object's name property.
1972 * object is invoked and data. JSVM_Callback provides more details.
1973 * @param result: JSVM_Value representing the JavaScript function object for the newly
2030 * a given JSVM_Value that represents the constructor for the object.
2037 * @param result: JSVM_Value representing the JavaScript object returned, which
2038 * in this case is the constructed object.
2052 * wraps the new C++ instance in a JavaScript object, and returns the wrapper object.
2081 * @brief Wraps a native instance in a JavaScript object. The native instance can
2085 * @param jsObject: The JavaScript object that will be the wrapper for the native object.
2086 * @param nativeObject: The native instance that will be wrapped in the JavaScript object.
2088 * when the JavaScript object has been garbage-collected.
2091 * @param result: Optional reference to the wrapped object.
2106 * argument to the callback is the wrapper object; the wrapped C++ instance that is the target of
2107 * the call can be obtained then by calling OH_JSVM_Unwrap() on the wrapper object.
2110 * @param jsObject: The object associated with the native instance.
2121 * @brief Retrieves a native instance that was previously wrapped in the JavaScript object jsObject
2123 * it will no longer be called when the JavaScript object becomes garbage-collected.
2126 * @param jsObject: The object associated with the native instance.
2137 * @brief Associates the value of the typeTag pointer with the JavaScript object or external.
2139 * object with one owned by the addon to ensure that the object has the right type.
2140 * If the object already has an associated type tag, this API will return JSVM_INVALID_ARG.
2143 * @param value: The JavaScript object or external to be marked.
2144 * @param typeTag: The tag with which the object is to be marked.
2147 * {@link JSVM_INVALID_ARG } If the object already has an associated type tag.\n
2155 * @brief Compares the pointer given as typeTag with any that can be found on js object.
2156 * If no tag is found on js object or, if a tag is found but it does not match typeTag,
2160 * @param value: The JavaScript object or external whose type tag to examine.
2161 * @param typeTag: The tag with which to compare any tag found on the object.
2162 * @param result: Whether the type tag given matched the type tag on the object. false is also returned
2163 * if no type tag was found on the object.
2174 * @brief This API can be called multiple times on a single JavaScript object.
2177 * @param jsObject: The JavaScript object to which the native data will be attached.
2180 * JavaScript object has been garbage-collected. JSVM_Finalize provides more details.
2182 * @param result: Optional reference to the JavaScript object.
2223 * object that points to its own memory allocated by a native addon). Registering
2253 * @brief This API creates a deferred object and a JavaScript promise.
2256 * @param deferred: A newly created deferred object which can later be
2259 * @param promise: The JavaScript promise associated with the deferred object.
2269 * @brief This API resolves a JavaScript promise by way of the deferred object with
2271 * for which the corresponding deferred object is available. This effectively means
2273 * object returned from that call must have been retained in order to be passed to this API.
2276 * @param deferred: The deferred object whose associated promise to resolve.
2287 * @brief This API rejects a JavaScript promise by way of the deferred object with
2289 * for which the corresponding deferred object is available. This effectively means
2291 * object returned from that call must have been retained in order to be passed to this API.
2294 * @param deferred: The deferred object whose associated promise to resolve.
2305 * @brief This API return indicating whether promise is a native promise object.
2308 * @param isPromise: Flag indicating whether promise is a native promise object
2331 * @brief This API stringifies the object and returns it as string if successful.
2333 * @param jsonObject: The object to stringify.
2346 * @param contextCount: The object to stringify.
2471 * @param propertyHandlerCfg: The instance object triggers the corresponding callback function.
2472 * @param callAsFunctionCallback: Calling an instance object as a function will trigger this callback.
2574 * @brief This API checks if the value passed in is a null object.
2589 * @brief This API checks if the value passed in is either a null or an undefined object.
2679 * @brief This API checks if the value passed in is an object.
2856 * @param object: JSVM_Value representing JavaScript Object whose prototype to return. This returns
2858 * @param result: JSVM_Value representing prototype of the given object.
2865 JSVM_Value object,
2872 * @param object: The object on which to set the prototype.
2880 JSVM_Value object,
2893 * @param result: JSVM_Value representing the JavaScript function object for the newly