diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-09-19 00:47:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-18 12:47:08 -0400 |
commit | de95fbebc467a51577c692ff7808c09d3d26fac6 (patch) | |
tree | 06f3107a3d2121b5db434b1bee40a5d063894fd0 | |
parent | 8edf099485903a402d8e9df4810b9362ed1b1f15 (diff) |
fix(cli/repl): format evaluation results with the object specifier (#7561)
-rw-r--r-- | cli/rt/40_repl.js | 2 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/rt/40_repl.js b/cli/rt/40_repl.js index 273687d93..650fb7fc8 100644 --- a/cli/rt/40_repl.js +++ b/cli/rt/40_repl.js @@ -63,7 +63,7 @@ ? undefined : result; if (!isCloseCalled()) { - replLog(lastEvalResult); + replLog("%o", lastEvalResult); } } else if (errInfo.isCompileError && isRecoverableError(errInfo.thrown)) { // Recoverable compiler error diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 5c2bb1b95..4eda0e8dd 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -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()); } |