File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -631,13 +631,13 @@ common.expectsError(
631631}
632632) ;
633633common . expectsError (
634- ( ) => assert ( typeof 123 === 'string' ) ,
634+ ( ) => assert ( typeof 123n === 'string' ) ,
635635{
636636code : 'ERR_ASSERTION' ,
637637type : assert . AssertionError ,
638638generatedMessage : true ,
639639message : 'The expression evaluated to a falsy value:\n\n ' +
640- "assert(typeof 123 === 'string')\n"
640+ "assert(typeof 123n === 'string')\n"
641641}
642642) ;
643643
Original file line number Diff line number Diff line change @@ -328,6 +328,21 @@ const errorTests = [
328328send : '1 }' ,
329329expect : '{ a: 1 }'
330330} ,
331+ // Multiline class with private member.
332+ {
333+ send : 'class Foo { #private = true ' ,
334+ expect : '... '
335+ } ,
336+ // Class field with bigint.
337+ {
338+ send : 'num = 123456789n' ,
339+ expect : '... '
340+ } ,
341+ // Static class features.
342+ {
343+ send : 'static foo = "bar" }' ,
344+ expect : 'undefined'
345+ } ,
331346// Multiline anonymous function with comment
332347{
333348send : '(function() {' ,
@@ -338,12 +353,12 @@ const errorTests = [
338353expect : '... '
339354} ,
340355{
341- send : 'return 1 ;' ,
356+ send : 'return 1n ;' ,
342357expect : '... '
343358} ,
344359{
345360send : '})()' ,
346- expect : '1 '
361+ expect : '1n '
347362} ,
348363// Multiline function call
349364{
You can’t perform that action at this time.
0 commit comments