diff --git a/doc/api/vm.md b/doc/api/vm.md index 6e7e60152c9b11..291a41743bda8f 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -1060,8 +1060,9 @@ current V8 isolate, or the main context. exits before the next GC). With eager execution, the GC will be started right away to measure the memory. **Default:** `'default'` -* Returns: {Promise} If the memory is successfully measured the promise will - resolve with an object containing information about the memory usage. +* Returns: {Promise} If the memory is successfully measured, the promise will + resolve with an object containing information about the memory usage, else it + will be rejected with an error with `ERR_CONTEXT_NOT_INITIALIZED` code property. The format of the object that the returned Promise may resolve with is specific to the V8 engine and may change from one version of V8 to the next.