Invoking jerry_exit (ERR_OUT_OF_MEMORY) instead of JERRY_UNREACHABLE in in ecma_alloc_*.

This commit is contained in:
Ruben Ayrapetyan
2014-12-04 15:10:39 +03:00
parent f7f0681698
commit 2b9b729c37
+2 -1
View File
@@ -80,7 +80,8 @@ JERRY_STATIC_ASSERT (sizeof (ecma_label_descriptor_t) == sizeof (uint64_t));
return p ## ecma_type; \
} \
} \
JERRY_UNREACHABLE(); \
\
jerry_exit (ERR_OUT_OF_MEMORY); \
}
/**