aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-repl.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-repl.js')
-rw-r--r--test/parallel/test-repl.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js
index f9f5d196aa..c0869c84b3 100644
--- a/test/parallel/test-repl.js
+++ b/test/parallel/test-repl.js
@@ -328,6 +328,21 @@ const errorTests = [
send: '1 }',
expect: '{ a: 1 }'
},
+ // Multiline class with private member.
+ {
+ send: 'class Foo { #private = true ',
+ expect: '... '
+ },
+ // Class field with bigint.
+ {
+ send: 'num = 123456789n',
+ expect: '... '
+ },
+ // Static class features.
+ {
+ send: 'static foo = "bar" }',
+ expect: 'undefined'
+ },
// Multiline anonymous function with comment
{
send: '(function() {',
@@ -338,12 +353,12 @@ const errorTests = [
expect: '... '
},
{
- send: 'return 1;',
+ send: 'return 1n;',
expect: '... '
},
{
send: '})()',
- expect: '1'
+ expect: '1n'
},
// Multiline function call
{