mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 15:19:40 -05:00
fix(cli/repl): format evaluation results with the object specifier (#7561)
This commit is contained in:
parent
8edf099485
commit
de95fbebc4
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue