We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b004e0 commit 2101371Copy full SHA for 2101371
lib/repl.js
@@ -226,7 +226,7 @@ function REPLServer(prompt,
226
let awaitPromise = false;
227
const input = code;
228
229
- if (/^\s*\{/.test(code) && /\}\s*$/.test(code)) {
+ if (/^\s*{/.test(code) && /}\s*$/.test(code)) {
230
// It's confusing for `{ a : 1 }` to be interpreted as a block
231
// statement rather than an object literal. So, we first try
232
// to wrap it in parentheses, so that it will be interpreted as
0 commit comments