From de95fbebc467a51577c692ff7808c09d3d26fac6 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sat, 19 Sep 2020 00:47:08 +0800 Subject: [PATCH] fix(cli/repl): format evaluation results with the object specifier (#7561) --- cli/rt/40_repl.js | 2 +- 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 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()); }