Skip to content

Commit 078088d

Browse files
committed
test: add multiple object case
1 parent 22912f6 commit 078088d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/parallel/test-repl.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,19 @@ const errorTests = [
310310
expect: '[Function (anonymous)]'
311311
},
312312
// Multiline object
313+
{
314+
send: '{}),({}',
315+
expect: '... ',
316+
},
317+
{
318+
send: '}',
319+
expect: [
320+
'{}),({}',
321+
kArrow,
322+
'',
323+
/^Uncaught SyntaxError: /,
324+
]
325+
},
313326
{
314327
send: '{ a: ',
315328
expect: '... '

0 commit comments

Comments
 (0)