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ó [email protected]
This commit is contained in:
László Langó authored and Robert Sipka committed 2018-09-03 14:00:07 +02:00
1 parent 2ad883ea48
commit 8547380d46
3 files changed
+94 -84

No files matched your search

+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