Skip to content

Commit eb535c5

Browse files
committed
doc: deprecate vm.runInDebugContext
Docs-only deprecation for v8.0.0. Runtime deprecation planned for v9.0.0. Removal planned for v10.0.0. PR-URL: #12243 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d56a7e6 commit eb535c5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/api/deprecations.md

+10
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,16 @@ Type: Runtime
590590
`node debug` corresponds to the legacy CLI debugger which has been replaced with
591591
a V8-inspector based CLI debugger available through `node inspect`.
592592

593+
<a id="DEP0069"></a>
594+
### DEP0069: vm.runInDebugContext(string)
595+
596+
Type: Documentation-only
597+
598+
The DebugContext will be removed in V8 soon and will not be available in Node
599+
10+.
600+
601+
*Note*: DebugContext was an experimental API.
602+
593603
[alloc]: buffer.html#buffer_class_method_buffer_alloc_size_fill_encoding
594604
[alloc_unsafe_size]: buffer.html#buffer_class_method_buffer_allocunsafe_size
595605
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size

doc/api/vm.md

+2
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ console.log(util.inspect(sandbox));
313313
added: v0.11.14
314314
-->
315315

316+
> Stability: 0 - Deprecated. An alternative is in development.
317+
316318
* `code` {string} The JavaScript code to compile and run.
317319

318320
The `vm.runInDebugContext()` method compiles and executes `code` inside the V8

0 commit comments

Comments
 (0)