diff --git a/src/libecmaobjects/ecma-alloc.c b/src/libecmaobjects/ecma-alloc.c index 64353967c..750c0d944 100644 --- a/src/libecmaobjects/ecma-alloc.c +++ b/src/libecmaobjects/ecma-alloc.c @@ -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); \ } /**