diff --git a/runtime/ecma_vm.cpp b/runtime/ecma_vm.cpp index d7875879626e4016ac93c735ebaedb555d87a070..90ff219a2ee26f32d45d041c97d879f3fd08514e 100644 --- a/runtime/ecma_vm.cpp +++ b/runtime/ecma_vm.cpp @@ -14,6 +14,7 @@ */ #include "plugins/ecmascript/runtime/ecma_vm.h" +#include #include "include/mem/panda_containers.h" #include "include/mem/panda_string.h" #include "plugins/ecmascript/runtime/bridge.h" @@ -104,6 +105,7 @@ static mem::MemoryManager *CreateMM(const LanguageContext &ctx, mem::InternalAll mem::GCSettings gc_settings(options, panda_file::SourceLang::ECMASCRIPT); mem::GCType gc_type = Runtime::GetGCType(options, panda_file::SourceLang::ECMASCRIPT); + ASSERT(gc_type != mem::GCType::GEN_GC); return mem::MemoryManager::Create(ctx, internal_allocator, gc_type, gc_settings, gc_trigger_config, heap_options); } diff --git a/tests/runtime/common/ecma_empty_class_check/CMakeLists.txt b/tests/runtime/common/ecma_empty_class_check/CMakeLists.txt index 36e45c10f40c2600f1170967f0336df0afc4d594..1542fd9e11eb279290c0474aa2569ce7e8360ef9 100644 --- a/tests/runtime/common/ecma_empty_class_check/CMakeLists.txt +++ b/tests/runtime/common/ecma_empty_class_check/CMakeLists.txt @@ -22,7 +22,6 @@ add_custom_target(ecma_empty_class_check_ark COMMENT "running ark javascript ecma_empty_class_check testcase" COMMAND rm -f ${ECMA_EMPTY_CLASS_CHECK_OUTPUT} COMMAND ${PANDA_RUN_PREFIX} $ ${RUNTIME_ARGUMENTS} > ${ECMA_EMPTY_CLASS_CHECK_OUTPUT} - COMMAND ${PANDA_RUN_PREFIX} $ ${RUNTIME_ARGUMENTS} --gc-type=gen-gc COMMAND ${PANDA_RUN_PREFIX} $ ${RUNTIME_ARGUMENTS} --gc-type=stw DEPENDS ecma_empty_class_check_es2panda ark )