Lines Matching refs:value

306  * to the global object.The value of this is global within the script.
310 * @param result: The value resulting from having executed the script.
360 * @brief This API throws the JavaScript value provided.
363 * @param error: The JavaScript value to be thrown.
426 * @param value: The JSVM_Value to be checked.
427 * @param result: Boolean value that is set to true if JSVM_Value represents an error,
433 JSVM_Value value,
511 * @param result: Boolean value that is set to true if an exception is pending.
582 * @brief This API creates a new reference with the specified reference count to the value passed in.
585 * @param value: The JSVM_Value for which a reference is being created.
592 JSVM_Value value,
637 * JavaScript value associated with the JSVM_Ref. Otherwise, result will be NULL.
640 * @param ref: The JSVM_Ref for which the corresponding value is being requested.
650 * @brief This API returns a JSVM-API value corresponding to a JavaScript Array type.
662 * @brief This API returns a JSVM-API value corresponding to a JavaScript Array type. The Array's length property
677 * @brief This API returns a JSVM-API value corresponding to a JavaScript ArrayBuffer. ArrayBuffers are used to
752 * @param time: ECMAScript time value in milliseconds since 01 January, 1970 UTC.
762 * @brief This API allocates a JavaScript value with external data attached to it. This is used to pass external
765 * collected.The created value is not an object, and therefore does not support additional properties. It is considered
766 * a distinct value type: calling OH_JSVM_Typeof() with an external value yields JSVM_EXTERNAL.
770 * @param finalizeCb: Optional callback to call when the external value is being collected. JSVM_Finalize provides
773 * @param result: A JSVM_Value representing an external value.
795 * @brief This API creates a JavaScript symbol value from a UTF8-encoded C string.
871 * @param value: Integer value to be represented in JavaScript.
877 int32_t value,
884 * @param value: Unsigned integer value to be represented in JavaScript.
890 uint32_t value,
897 * @param value: Integer value to be represented in JavaScript.
903 int64_t value,
910 * @param value: Double-precision value to be represented in JavaScript.
916 double value,
923 * @param value: Integer value to be represented in JavaScript.
929 int64_t value,
936 * @param value: Unsigned integer value to be represented in JavaScript.
942 uint64_t value,
946 * @brief This API converts an array of unsigned 64-bit words into a single BigInt value.
964 * @brief This API creates a JavaScript string value from an ISO-8859-1-encoded C
980 * @brief This API creates a JavaScript string value from a UTF16-LE-encoded C
997 * @brief This API creates a JavaScript string value from a UTF8-encoded C
1016 * @param value: JSVM_Value representing the JavaScript Array whose length is being queried.
1022 JSVM_Value value,
1031 * or any other pointer value.
1062 * @param data: The data buffer underlying the TypedArray adjusted by the byte_offset value so that it
1064 * any other pointer value.
1067 * the arrays is located. The value for the data parameter has already been adjusted so that data points
1088 * If byte_length is 0, this may be NULL or any other pointer value.
1104 * primitive of time value for the given JavaScript Date.
1107 * @param value: JSVM_Value representing a JavaScript Date.
1108 * @param result: Time value as a double represented as milliseconds
1114 JSVM_Value value,
1121 * @param value: JSVM_Value representing JavaScript Boolean.
1128 JSVM_Value value,
1135 * @param value: JSVM_Value representing JavaScript number.
1142 JSVM_Value value,
1147 * If needed it will truncate the value, setting lossless to false.
1150 * @param value: JSVM_Value representing JavaScript BigInt.
1152 * @param lossless: Indicates whether the BigInt value was converted losslessly.
1157 JSVM_Value value,
1163 * If needed it will truncate the value, setting lossless to false.
1166 * @param value: JSVM_Value representing JavaScript BigInt.
1168 * @param lossless: Indicates whether the BigInt value was converted losslessly.
1173 JSVM_Value value,
1178 * @brief This API converts a single BigInt value into a sign bit, 64-bit little-endian array, and the number
1182 * @param value: JSVM_Value representing JavaScript BigInt.
1191 JSVM_Value value,
1200 * @param value: JSVM_Value representing JavaScript external value.
1201 * @param result: Pointer to the data wrapped by the JavaScript external value.
1206 JSVM_Value value,
1213 * @param value: JSVM_Value representing JavaScript number.
1219 JSVM_Value value,
1226 * @param value: JSVM_Value representing JavaScript number.
1232 JSVM_Value value,
1236 * @brief This API returns the ISO-8859-1-encoded string corresponding the value passed in.
1239 * @param value: JSVM_Value representing JavaScript string.
1242 * @param bufsize: Size of the destination buffer. When this value is insufficient, the returned string
1249 JSVM_Value value,
1255 * @brief This API returns the UTF8-encoded string corresponding the value passed in.
1258 * @param value: JSVM_Value representing JavaScript string.
1261 * @param bufsize: Size of the destination buffer. When this value is insufficient, the returned
1268 JSVM_Value value,
1274 * @brief This API returns the UTF16-encoded string corresponding the value passed in.
1277 * @param value: JSVM_Value representing JavaScript string.
1280 * @param bufsize: Size of the destination buffer. When this value is insufficient,
1287 JSVM_Value value,
1296 * @param value: JSVM_Value representing JavaScript number.
1303 JSVM_Value value,
1307 * @brief This API is used to return the JavaScript singleton object that is used to represent the given boolean value.
1310 * @param value: The value of the boolean to retrieve.
1316 bool value,
1345 * @param result: JSVM_Value representing JavaScript Undefined value.
1356 * @param value: The JavaScript value to coerce.
1362 JSVM_Value value,
1367 * function potentially runs JS code if the passed-in value is an object.
1370 * @param value: The JavaScript value to coerce.
1376 JSVM_Value value,
1383 * @param value: The JavaScript value to coerce.
1389 JSVM_Value value,
1394 * function potentially runs JS code if the passed-in value is an object.
1397 * @param value: The JavaScript value to coerce.
1403 JSVM_Value value,
1409 * for detecting an External value.It detects null as a separate type, while
1410 * ECMAScript typeof would detect object.If value has a type that is invalid,
1414 * @param value: The JavaScript value whose type to query.
1415 * @param result: The type of the JavaScript value.
1420 JSVM_Value value,
1427 * @param object: The JavaScript value to check.
1443 * @param value: The JavaScript value to check.
1449 JSVM_Value value,
1456 * @param value: The JavaScript value to check.
1462 JSVM_Value value,
1469 * @param value: The JavaScript value to check.
1475 JSVM_Value value,
1482 * @param value: The JavaScript value to check.
1488 JSVM_Value value,
1495 * @param value: The JavaScript value to check.
1501 JSVM_Value value,
1506 * Returns true only when both the type and value are equal.
1509 * @param lhs: The JavaScript value to check.
1510 * @param rhs: The JavaScript value to check against.
1525 * @param lhs: The JavaScript value to check.
1526 * @param rhs: The JavaScript value to check against.
1552 * @param value: The JavaScript ArrayBuffer to be checked.
1558 JSVM_Value value,
1605 * @param value: The property value.
1612 JSVM_Value value);
1620 * @param result: The value of the property.
1684 * @param value: The property value.
1691 JSVM_Value value);
1700 * @param result: The value of the property.
1731 * @param value: The property value.
1738 JSVM_Value value);
1746 * @param result: The value of the property.
1838 * @param recv: The this value passed to the called function.
1921 * @brief his method is used to instantiate a new JavaScript value using
2024 * @brief Associates the value of the typeTag pointer with the JavaScript object or external.
2030 * @param value: The JavaScript object or external to be marked.
2036 JSVM_Value value,
2045 * @param value: The JavaScript object or external whose type tag to examine.
2053 JSVM_Value value,
2111 * @param result: The adjusted value
2155 * @param resolution: The value with which to resolve the promise.
2172 * @param rejection: The value with which to reject the promise.
2183 * @param value: The value to examine
2189 JSVM_Value value,
2193 * @brief This API parses a JSON string and returns it as value if successful.
2196 * @param result: The parse value if successful.
2403 * @brief This API checks if the value passed in is callable.
2406 * @param value: The JavaScript value to check.
2407 * @param isCallable: Whether the given value is callable.
2412 JSVM_Value value,
2416 * @brief This API checks if the value passed in is undefined.
2417 * This equals to `value === undefined` in JS.
2420 * @param value: The JavaScript value to check.
2421 * @param isUndefined: Whether the given value is Undefined.
2426 JSVM_Value value,
2430 * @brief This API checks if the value passed in is a null object.
2431 * This equals to `value === null` in JS.
2434 * @param value: The JavaScript value to check.
2435 * @param isNull: Whether the given value is Null.
2440 JSVM_Value value,
2444 * @brief This API checks if the value passed in is either a null or an undefined object.
2445 * This is equivalent to `value == null` in JS.
2448 * @param value: The JavaScript value to check.
2449 * @param isNullOrUndefined: Whether the given value is Null or Undefined.
2454 JSVM_Value value,
2458 * @brief This API checks if the value passed in is a boolean.
2459 * This equals to `typeof value === 'boolean'` in JS.
2462 * @param value: The JavaScript value to check.
2463 * @param isBoolean: Whether the given value is Boolean.
2468 JSVM_Value value,
2472 * @brief This API checks if the value passed in is a number.
2473 * This equals to `typeof value === 'number'` in JS.
2476 * @param value: The JavaScript value to check.
2477 * @param isNumber: Whether the given value is Number.
2482 JSVM_Value value,
2486 * @brief This API checks if the value passed in is a string.
2487 * This equals to `typeof value === 'string'` in JS.
2490 * @param value: The JavaScript value to check.
2491 * @param isString: Whether the given value is String.
2496 JSVM_Value value,
2500 * @brief This API checks if the value passed in is a symbol.
2501 * This equals to `typeof value === 'symbol'` in JS.
2504 * @param value: The JavaScript value to check.
2505 * @param isSymbol: Whether the given value is Symbol.
2510 JSVM_Value value,
2514 * @brief This API checks if the value passed in is a function.
2515 * This equals to `typeof value === 'function'` in JS.
2518 * @param value: The JavaScript value to check.
2519 * @param isFunction: Whether the given value is Function.
2524 JSVM_Value value,
2528 * @brief This API checks if the value passed in is an object.
2531 * @param value: The JavaScript value to check.
2532 * @param isObject: Whether the given value is Object.
2537 JSVM_Value value,
2541 * @brief This API checks if the value passed in is a bigInt.
2542 * This equals to `typeof value === 'bigint'` in JS.
2545 * @param value: The JavaScript value to check.
2546 * @param isBigInt: Whether the given value is BigInt.
2551 JSVM_Value value,
2555 * @brief This API checks if the value passed in is a constructor.
2558 * @param value: The JavaScript value to check.
2559 * @param isConstructor: Whether the given value is Constructor.
2564 JSVM_Value value,
2568 * @brief This API returns the JavaScript value of the regular expression
2573 * @param value: The JavaScript string to convert to a regular expression.
2579 * {@link JSVM_STRING_EXPECTED } If the value of 'value' is not a string.\n
2585 JSVM_Value value,
2590 * @brief This API returns a JSVM-API value corresponding to a JavaScript Map type.
2600 * @brief This API checks if the value passed in is a Map.
2603 * @param value: The JavaScript value to check.
2604 * @param isMap: Whether the given value is Map.
2609 JSVM_Value value,
2613 * @brief This API returns a JSVM-API value corresponding to a JavaScript Set type.
2624 * @brief This API checks if the value passed in is a Set.
2627 * @param value: The JavaScript value to check.
2628 * @param isSet: Whether the given value is Set.
2633 JSVM_Value value,
2654 * @param prototype: The prototype value.
2666 * @param value: The JavaScript value to coerce.
2669 * JavaScript value fails to coerce.
2673 JSVM_Value value,
2677 * @brief This API checks if the value passed in is a JavaScript RegExp object.
2680 * @param value: The JavaScript value to check.
2681 * @param result: Whether the given value is RegExp.
2686 JSVM_Value value,
2806 * @param value: The JavaScript value to check.
2807 * @param result: Whether the given value is a WebAssembly module.
2815 JSVM_Value value,