Support passing of string and object arguments to plugins' bound functions.

This commit is contained in:
Ruben Ayrapetyan
2015-03-25 18:32:38 +03:00
parent c8f78c5d28
commit 6b0b669c14
9 changed files with 202 additions and 25 deletions
+2 -2
View File
@@ -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;
+1 -3
View File
@@ -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