node.js - Unexpected behavior of util.inspect -
util.inspect seems behave differently in node repl , custom repl
$ node > require("util").inspect([]) '[]' >
output in custom repl
$ node repl.js > require("util").inspect([]) 'array []' >
content of repl.js
var repl = require('repl'); repl.start({ input: process.stdin, output: process.stdout });
i can't duplicate current master branch. '[]'
in both cases.
my guess fixed in 089d68861.
Comments
Post a Comment