From 6c708102d3da5a6984322c7cb4cf518791cb5137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Lang=C3=B3?= Date: Thu, 19 Jan 2017 11:31:30 +0100 Subject: [PATCH] Minor fix in API reference (#1536) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com --- docs/02.API-REFERENCE.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/02.API-REFERENCE.md b/docs/02.API-REFERENCE.md index 2cf45077c..8c319cf99 100644 --- a/docs/02.API-REFERENCE.md +++ b/docs/02.API-REFERENCE.md @@ -2817,8 +2817,9 @@ jerry_free_property_descriptor_fields (const jerry_property_descriptor_t *prop_d **Summary** -Call function specified by a function value. Error flag -must not be set for any arguments of this function. +Call function specified by a function value. Error flag must +not be set for any arguments of this function. Value of `this` +parameter should be set to `undefined` for non-method calls. *Note*: Returned value must be freed with [jerry_release_value](#jerry_release_value) when it is no longer needed. @@ -2860,6 +2861,8 @@ jerry_call_function (const jerry_value_t func_obj_val, jerry_release_value (ret_val); jerry_release_value (this_val); } + + jerry_release_value (val); } ```