We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a976ec commit 1080a1aCopy full SHA for 1080a1a
lib/repl.js
@@ -233,7 +233,7 @@ function REPLServer(prompt,
233
var awaitPromise = false;
234
var input = code;
235
236
- if (/^\s*\{/.test(code) && /\}\s*$/.test(code)) {
+ if (/^\s*{/.test(code) && /}\s*$/.test(code)) {
237
// It's confusing for `{ a : 1 }` to be interpreted as a block
238
// statement rather than an object literal. So, we first try
239
// to wrap it in parentheses, so that it will be interpreted as
0 commit comments