@@ -559,14 +559,14 @@ const tests = [
559
559
env : { NODE_REPL_HISTORY : defaultHistoryPath } ,
560
560
test : [ 'const util = {}' , ENTER ,
561
561
'ut' , RIGHT , ENTER ] ,
562
- expected : common . hasIntl && common . hasCrypto ? [
562
+ expected : [
563
563
prompt , ...'const util = {}' ,
564
564
'undefined\n' ,
565
- prompt , ...'ut' , ' // il' , '\n// {}' ,
566
- 'il' , '\n// {}' ,
565
+ prompt , ...'ut' , ... ( prev ? [ ' // il' , '\n// {}' ,
566
+ 'il' , '\n// {}' ] : [ ' // il' , 'il' ] ) ,
567
567
'{}\n' ,
568
568
prompt ,
569
- ] : [ ] ,
569
+ ] ,
570
570
clean : false
571
571
} ,
572
572
{
@@ -577,7 +577,7 @@ const tests = [
577
577
'globalThis.util = {}' , ENTER ,
578
578
'ut' , RIGHT , ENTER ,
579
579
'Reflect.defineProperty(globalThis, "util", utilDesc)' , ENTER ] ,
580
- expected : common . hasIntl && common . hasCrypto ? [
580
+ expected : [
581
581
prompt , ...'const utilDesc = ' +
582
582
'Reflect.getOwnPropertyDescriptor(globalThis, "util")' ,
583
583
'undefined\n' ,
@@ -588,7 +588,7 @@ const tests = [
588
588
prompt , ...'Reflect.defineProperty(globalThis, "util", utilDesc)' ,
589
589
'true\n' ,
590
590
prompt ,
591
- ] : [ ] ,
591
+ ] ,
592
592
clean : false
593
593
} ,
594
594
] ;
0 commit comments