Files
node/lib
Lance Ball c0e48bf27d repl: Enable tab completion for global properties
When `useGlobal` is false, tab completion in the repl does not enumerate
global properties. Instead of just setting these properties blindly on
the global context, e.g.

    context[prop] = global[prop]

Use `Object.defineProperty` and the property descriptor found on
`global` for the new property in `context`.

Also addresses a previously unnoticed issue where `console` is writable
when `useGlobal` is false.

If the binary has been built with `./configure --without-intl` then the
`Intl` builtin type will not be available in a repl runtime. Check for
this in the test.

Fixes: https://github.com/nodejs/node/issues/7353
PR-URL: https://github.com/nodejs/node/pull/7369
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-06-27 16:55:53 -04:00
..
2015-10-08 17:32:08 -07:00
2016-04-29 16:52:57 -07:00
2016-05-26 11:28:45 +02:00
2016-06-07 13:51:14 -06:00
2016-05-17 11:05:18 -07:00
2016-05-18 02:12:28 -04:00
2016-06-17 17:03:49 +02:00
2016-06-01 18:57:45 -04:00
2016-05-23 12:16:41 +02:00