diff --git a/cli/rt/40_repl.js b/cli/rt/40_repl.js index 273687d930..650fb7fc8d 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 5c2bb1b95c..4eda0e8dd2 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()); }