You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functioninspect(){constinspector=require("inspector")lethost="127.99.110.101";letport=41946;letterminal="command that opens a windows terminal profile using `node-inspect.cmd ${host}:${port}` as the command";inspector.open(port,host,false);child_process.exec(terminal);inspector.waitForDebugger();}
Open a NodeJS REPL and run the function.
> inspect()
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior?
No deprecation message.
What do you see instead?
> inspect() // this is the same command from before -- it wasn't run twice
Debugger attached.
undefined
> (node:10080) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
at emitMakeCallbackDeprecation (domain.js:129:13)
at process.topLevelDomainCallback (domain.js:140:5)
at process.callbackTrampoline (internal/async_hooks.js:129:14)
at Object.inspectorOpen [as open] (inspector.js:139:3)
at get (C:\Users\TheBrenny\My Space\Util\nodeRepl.js:56:27)
at REPL1:1:1
at Script.runInThisContext (vm.js:133:18)
at REPLServer.defaultEval (repl.js:484:29)
at bound (domain.js:413:15)
at REPLServer.runBound [as eval] (domain.js:424:12)
Additional information
Sure, I understand that it is only a warning, but warnings are ugly and they do just that: they warn.
The text was updated successfully, but these errors were encountered:
Version
v14.16.1
Platform
Microsoft Windows NT 10.0.19043.0 x64
Subsystem
inspector
What steps will reproduce the bug?
Require the following function.
Open a NodeJS REPL and run the function.
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior?
No deprecation message.
What do you see instead?
Additional information
Sure, I understand that it is only a warning, but warnings are ugly and they do just that: they warn.
The text was updated successfully, but these errors were encountered: