0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Ben Noordhuis 213ede6cee repl: fix require('3rdparty') regression
Fix module loading of third-party modules in the REPL by inheriting
module.paths from the REPL's parent module.

Commit ee72ee7 ("module,repl: remove repl require() hack") introduced
a regression where require() of modules in node_modules directories
no longer worked in the REPL (and fortunately only in the REPL.)
It turns out we didn't have test coverage for that but we do now.

Fixes: https://github.com/nodejs/node/issues/4208
PR-URL: https://github.com/nodejs/node/pull/4215
Reviewed-By: Roman Reiss <me@silverwind.io>
2015-12-09 23:30:02 +01:00
..
internal tools: add --prof-process flag to node binary 2015-12-08 02:00:46 +01:00
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js lib,src: ensure '(node:pid)' prefix for stdout logging 2015-12-03 12:24:38 -08:00
_http_agent.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
_http_client.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
_http_common.js http: fix stalled pipeline bug 2015-10-14 12:16:18 -04:00
_http_incoming.js http: do not allow multiple instances of certain response headers 2015-10-06 14:53:21 -07:00
_http_outgoing.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
_http_server.js http: fix pipeline regression 2015-12-04 14:42:13 +11:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js stream: be less eager with readable flag 2015-12-03 21:59:44 -05:00
_stream_transform.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js streams: update .readable/.writable to false 2015-12-02 12:56:48 -05:00
_tls_common.js lib,src: ensure '(node:pid)' prefix for stdout logging 2015-12-03 12:24:38 -08:00
_tls_legacy.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
_tls_wrap.js tls: use SHA1 for sessionIdContext 2015-11-16 17:26:23 -05:00
assert.js assert: accommodate ES6 classes that extend Error 2015-12-09 09:05:20 -08:00
buffer.js buffer: fix range checking for slowToString 2015-12-07 16:52:53 -07:00
child_process.js child_process: add safety checks on stdio access 2015-11-12 17:52:09 -08:00
cluster.js cluster: send suicide message on disconnect 2015-11-11 11:17:37 -05:00
console.js console: delete timers that have ended 2015-11-13 11:36:45 -05:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
dgram.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
dns.js meta: remove use of profanity in source 2015-12-02 11:05:11 -08:00
domain.js src: fix --abort-on-uncaught-exception 2015-10-05 18:12:43 -07:00
events.js lib,src: ensure '(node:pid)' prefix for stdout logging 2015-12-03 12:24:38 -08:00
fs.js fs,doc: use target instead of destination 2015-12-05 18:25:05 -08:00
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js http{s}: don't connect to localhost on invalid URL 2015-10-27 08:47:23 +05:30
module.js module,repl: remove repl require() hack 2015-11-30 23:58:27 +01:00
net.js net: add local address/port for better errors 2015-11-24 16:00:51 -06:00
os.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
path.js path: make format() consistent and more functional 2015-11-27 11:53:33 +00:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js querystring: Parse multiple separator characters 2015-11-13 10:13:35 -08:00
readline.js readline: deprecate undocumented exports 2015-11-19 17:01:25 -05:00
repl.js repl: fix require('3rdparty') regression 2015-12-09 23:30:02 +01:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js timers: optimize callback call: bind -> arrow 2015-12-02 11:14:28 -05:00
tls.js tls: remove util and calls to util.format 2015-10-28 16:57:55 -07:00
tty.js tty: Remove deprecated setRawMode wrapper 2015-11-18 13:16:02 -08:00
url.js lib: Consistent error messages in all modules 2015-11-09 20:08:36 +01:00
util.js util: determine object types in C++ 2015-12-02 11:16:21 -05:00
v8.js src: add total_available_size to v8 statistics 2015-08-11 22:51:50 +02:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: only apply drain listener if given callback 2015-11-14 08:11:28 -08:00