未验证 提交 de95fbeb 编写于 作者: C Casper Beyer 提交者: GitHub

fix(cli/repl): format evaluation results with the object specifier (#7561)

上级 8edf0994
......@@ -63,7 +63,7 @@
? undefined
: result;
if (!isCloseCalled()) {
replLog(lastEvalResult);
replLog("%o", lastEvalResult);
}
} else if (errInfo.isCompileError && isRecoverableError(errInfo.thrown)) {
// Recoverable compiler error
......
......@@ -1053,7 +1053,7 @@ fn repl_test_console_log() {
Some(vec![("NO_COLOR".to_owned(), "1".to_owned())]),
false,
);
assert!(out.ends_with("hello\nundefined\nworld\n"));
assert!(out.ends_with("hello\nundefined\n\"world\"\n"));
assert!(err.is_empty());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册