Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 081a6ff

Browse filesBrowse files
yashLadhaMoLow
authored andcommitted
doc: update measure memory rejection information
If in case context is unable to allocate a promise then `ERR_CONTEXT_NOT_INITIALIZED` error will be thrown (as promise rejection) in the vm measureMemory call. PR-URL: #41639 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
1 parent dc318f2 commit 081a6ff
Copy full SHA for 081a6ff

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/vm.md‎

Copy file name to clipboardExpand all lines: doc/api/vm.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,9 @@ current V8 isolate, or the main context.
11401140
exits before the next GC). With eager execution, the GC will be started
11411141
right away to measure the memory.
11421142
**Default:** `'default'`
1143-
* Returns: {Promise} If the memory is successfully measured the promise will
1143+
* Returns: {Promise} If the memory is successfully measured, the promise will
11441144
resolve with an object containing information about the memory usage.
1145+
Otherwise it will be rejected with an `ERR_CONTEXT_NOT_INITIALIZED` error.
11451146
11461147
The format of the object that the returned Promise may resolve with is
11471148
specific to the V8 engine and may change from one version of V8 to the next.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.