Fix constantness of 'jerry_merge_snapshots' function. (#2504)

'jerry_merge_snapshots' should not modify the input snapshots. Updated the
related unit test. Also fixed some minor style issues.

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2018-09-03 14:00:07 +02:00
committed by Robert Sipka
parent 2ad883ea48
commit 8547380d46
3 changed files with 94 additions and 84 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ ecma_save_literals_add_compiled_code (const ecma_compiled_code_t *compiled_code_
* Save literals to specified snapshot buffer.
*
* Note:
* Frees lit_pool_p regardless of success.
* Frees 'lit_pool_p' regardless of success.
*
* @return true - if save was performed successfully (i.e. buffer size is sufficient),
* false - otherwise