-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
lib,src: remove vm.runInDebugContext() #13295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
The V8 API it is based on is deprecated and scheduled for removal later this year. Remove it. PR-URL: #13295 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
- Loading branch information
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,12 +19,14 @@ | |
| // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | ||
| // USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
|
||
| // Flags: --expose_internals | ||
| 'use strict'; | ||
| const common = require('../common'); | ||
| const assert = require('assert'); | ||
| const JSStream = process.binding('js_stream').JSStream; | ||
| const util = require('util'); | ||
| const vm = require('vm'); | ||
| const { previewMapIterator } = require('internal/v8'); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we test the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't add a test here, I just updated an existing test that was using internals. |
||
|
|
||
| assert.strictEqual(util.inspect(1), '1'); | ||
| assert.strictEqual(util.inspect(false), 'false'); | ||
|
|
@@ -442,11 +444,9 @@ assert.strictEqual(util.inspect(-0), '-0'); | |
|
|
||
| // test for Array constructor in different context | ||
| { | ||
| const Debug = vm.runInDebugContext('Debug'); | ||
| const map = new Map(); | ||
| map.set(1, 2); | ||
| const mirror = Debug.MakeMirror(map.entries(), true); | ||
| const vals = mirror.preview(); | ||
| const vals = previewMapIterator(map.entries(), 100); | ||
| const valsOutput = []; | ||
| for (const o of vals) { | ||
| valsOutput.push(o); | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You’ll also want to update the entry in
deprecations.mdto sayType: End-of-Life