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
Platform: Linux DESKTOP-OKC3QBQ 4.19.128-microsoft-standard deps: update openssl to 1.0.1j #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: REPL
What steps will reproduce the bug?
Run the node executable to open the REPL. In the REPL simply run the line const util = {}, then on the next line type the name of any existing symbol longer than 3 characters, such as process or module
How often does it reproduce? Is there a required condition?
This reproduction is consistent
What is the expected behavior?
The repl will continue to function normally.
What do you see instead?
The REPL overwrites most the typed line with the text (node:27986) TypeError: Cannot read property 'length' of undefined. Specifically, if I open the REPL and enter the input const util = {};<Enter>process, the REPL looks like this:
Welcome to Node.js v14.15.4.
Type ".help" for more information.
> const util = {};
undefined
> proc(node:28039) TypeError: Cannot read property 'length' of undefined
s(node:28039) TypeError: Cannot read property 'length' of undefined
The text was updated successfully, but these errors were encountered:
The REPL no longer relies on `util` being a reference to the `util` core
module. It still relies on `globalThis` refering to the global object,
but no longer emits warnings when it's overwritten by the user.
PR-URL: nodejs#38141Fixes: nodejs#38139
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
What steps will reproduce the bug?
Run the
node
executable to open the REPL. In the REPL simply run the lineconst util = {}
, then on the next line type the name of any existing symbol longer than 3 characters, such asprocess
ormodule
How often does it reproduce? Is there a required condition?
This reproduction is consistent
What is the expected behavior?
The repl will continue to function normally.
What do you see instead?
The REPL overwrites most the typed line with the text
(node:27986) TypeError: Cannot read property 'length' of undefined
. Specifically, if I open the REPL and enter the inputconst util = {};<Enter>process
, the REPL looks like this:The text was updated successfully, but these errors were encountered: