Support passing of string and object arguments to plugins' bound functions.
This commit is contained in:
@@ -387,7 +387,7 @@ typedef enum
|
||||
* Description of ECMA-object or lexical environment
|
||||
* (depending on is_lexical_environment).
|
||||
*/
|
||||
typedef struct
|
||||
typedef struct ecma_object_t
|
||||
{
|
||||
/* Common part for objects and lexical environments */
|
||||
|
||||
@@ -763,7 +763,7 @@ typedef uint8_t ecma_string_hash_t;
|
||||
/**
|
||||
* ECMA string-value descriptor
|
||||
*/
|
||||
typedef struct
|
||||
typedef struct ecma_string_t
|
||||
{
|
||||
/** Reference counter for the string */
|
||||
unsigned int refs : CONFIG_ECMA_REFERENCE_COUNTER_WIDTH;
|
||||
|
||||
@@ -866,9 +866,7 @@ ecma_string_to_number (const ecma_string_t *str_p) /**< ecma-string */
|
||||
} /* ecma_string_to_number */
|
||||
|
||||
/**
|
||||
* Copy ecma-string's contents to a buffer.
|
||||
*
|
||||
* Buffer will contain length of string, in characters, followed by string's characters.
|
||||
* Convert ecma-string's contents to a zero-terminated string and put it to the buffer.
|
||||
*
|
||||
* @return number of bytes, actually copied to the buffer - if string's content was copied successfully;
|
||||
* otherwise (in case size of buffer is insuficcient) - negative number, which is calculated
|
||||
|
||||
Reference in New Issue
Block a user