diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 43420e60d90a15..2f312e9b6280f4 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -9490,6 +9490,7 @@ class V8_EXPORT Isolate { internal::Address* GetDataFromSnapshotOnce(size_t index); void ReportExternalAllocationLimitReached(); + void CheckMemoryPressure(); }; class V8_EXPORT StartupData { diff --git a/deps/v8/src/api/api.cc b/deps/v8/src/api/api.cc index 93780bceec4186..5b1c2b156b6e93 100644 --- a/deps/v8/src/api/api.cc +++ b/deps/v8/src/api/api.cc @@ -7987,6 +7987,9 @@ void Isolate::ReportExternalAllocationLimitReached() { heap->ReportExternalMemoryPressure(); } +// Node v14.x ABI compat dummy. +void Isolate::CheckMemoryPressure() {} + HeapProfiler* Isolate::GetHeapProfiler() { i::HeapProfiler* heap_profiler = reinterpret_cast(this)->heap_profiler();