summaryrefslogtreecommitdiff
path: root/cli/js/repl.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/repl.ts')
-rw-r--r--cli/js/repl.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/js/repl.ts b/cli/js/repl.ts
index 8a37d991f..9f2693de6 100644
--- a/cli/js/repl.ts
+++ b/cli/js/repl.ts
@@ -56,10 +56,9 @@ function evaluate(code: string): boolean {
if (!errInfo) {
// when a function is eval'ed with just "use strict" sometimes the result
// is "use strict" which should be discarded
- lastEvalResult =
- typeof result === "string" && result === "use strict"
- ? undefined
- : result;
+ lastEvalResult = typeof result === "string" && result === "use strict"
+ ? undefined
+ : result;
if (!isCloseCalled()) {
replLog(lastEvalResult);
}