Do not load readline from util.inspect

This causes all modules using console.log() to load readline which seems
unnecessary.
This commit is contained in:
Ryan Dahl 2011-09-12 18:25:00 -07:00
parent 0928f0f290
commit 8c87250816
2 changed files with 1 additions and 12 deletions

View File

@ -365,7 +365,7 @@ function reduceToSingleString(output, base, braces) {
return prev + cur.length + 1;
}, 0);
if (length > (require('readline').columns || 50)) {
if (length > 60) {
return braces[0] +
(base === '' ? '' : base + '\n ') +
' ' +

View File

@ -78,13 +78,6 @@ if (!process.features.uv) {
case 'fs':
expected = expected.concat([
'NativeModule console',
'NativeModule readline',
'NativeModule tty',
'NativeModule tty_posix',
'NativeModule net_uv',
'NativeModule timers_uv',
'Binding timer_wrap',
'NativeModule _linklist',
]);
break;
@ -98,7 +91,6 @@ if (!process.features.uv) {
'Binding timer_wrap',
'NativeModule _linklist',
'Binding pipe_wrap',
'NativeModule readline'
]);
break;
@ -110,9 +102,6 @@ if (!process.features.uv) {
'Binding timer_wrap',
'NativeModule _linklist',
'Binding pipe_wrap',
'NativeModule readline',
'NativeModule tty',
'NativeModule tty_posix',
]);
break;