Skip to content

Commit fd17a3a

Browse files
committed
mapped [open|nextfile|close]dir
nextfiledir on MoarVM is slightly different from JVM, it does not prepend the foldername we have opened. Though we can cope with it in rakudo.
1 parent f7e7e7f commit fd17a3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,9 @@ QAST::MASTOperations.add_core_moarop_mapping('rename', 'rename_f', 0);
15721572
QAST::MASTOperations.add_core_moarop_mapping('copy', 'copy_f', 0);
15731573
# QAST::MASTOperations.add_core_moarop_mapping('symlink', ?);
15741574
# QAST::MASTOperations.add_core_moarop_mapping('link', ?);
1575+
QAST::MASTOperations.add_core_moarop_mapping('opendir', 'open_dir');
1576+
QAST::MASTOperations.add_core_moarop_mapping('nextfiledir', 'read_dir');
1577+
QAST::MASTOperations.add_core_moarop_mapping('closedir', 'close_dir');
15751578
QAST::MASTOperations.add_core_op('sprintf', -> $qastcomp, $op {
15761579
my @operands := $op.list;
15771580
$qastcomp.as_mast(

0 commit comments

Comments
 (0)