Files
node/lib
Michaël Zasso 8e58c7557b repl: fix autocomplete when useGlobal is false
This fixes two issues in the REPL when it is started with a new context
(useGlobal option set to `false`):
- The `primordials` object does not contain all builtins, so the
  filtering based on property names from `primordials` was wrong.
- The autocompleter did not take builtin names into account because
  they are not properties of the context object.

A list of all global builtin names is created lazily when needed. It is
used for filtering for the copy and for adding those names to the
autocompleter list.

Fixes: https://github.com/nodejs/node/issues/30792

PR-URL: https://github.com/nodejs/node/pull/30883
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
2019-12-13 20:51:48 -05:00
..
2019-11-25 10:28:15 +01:00
2019-11-25 10:28:15 +01:00
2018-11-20 10:42:31 -08:00
2019-11-25 10:28:15 +01:00
2019-11-25 10:28:15 +01:00
2019-12-11 05:58:42 +01:00
2018-07-16 15:55:15 -07:00
2019-11-25 10:28:15 +01:00
2019-12-11 16:38:06 -06:00