Support external context in the snapshot tool (#2870)

This patch fixes #2869.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-05-13 16:07:39 +02:00
committed by László Langó
parent 4331e39b9a
commit 76a1fc5674
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -668,7 +668,7 @@ main (int argc,
#ifdef JERRY_ENABLE_EXTERNAL_CONTEXT
jerry_context_t *context_p = jerry_create_context (512*1024, context_alloc, NULL);
jerry_context_t *context_p = jerry_create_context (CONFIG_MEM_HEAP_AREA_SIZE, context_alloc, NULL);
jerry_port_default_set_current_context (context_p);
#endif /* JERRY_ENABLE_EXTERNAL_CONTEXT */