Fix Symbol.description API reference count management (#4267)

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
This commit is contained in:
Robert Fancsik authored and GitHub committed 2020-10-02 11:08:57 +02:00
1 parent 7458766033
commit 37d6b13891
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -3815,7 +3815,7 @@ jerry_get_symbol_description (const jerry_value_t symbol) /**< symbol value */
}
/* Note: This operation cannot throw an error */
return ecma_get_symbol_description (ecma_get_symbol_from_value (symbol));
return ecma_copy_value (ecma_get_symbol_description (ecma_get_symbol_from_value (symbol)));
#else /* !ENABLED (JERRY_ESNEXT) */
JERRY_UNUSED (symbol);