Skip to content

Commit c9eb559

Browse files
committed
[js] Stub nqp::flushfh.
1 parent 9a354e1 commit c9eb559

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/vm/js/QAST/Compiler.nqp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ class QAST::OperationsJS {
573573
add_simple_op('readlinefh', $T_STR, [$T_OBJ], :sideffects);
574574
add_simple_op('readallfh', $T_STR, [$T_OBJ], :sideffects);
575575
add_simple_op('printfh', $T_OBJ, [$T_OBJ, $T_STR], :sideffects);
576+
add_simple_op('flushfh', $T_OBJ, [$T_OBJ], :sideffects);
576577
add_simple_op('closefh', $T_OBJ, [$T_OBJ], :sideffects);
577578
add_simple_op('setinputlinesep', $T_OBJ, [$T_OBJ, $T_STR], :sideffects);
578579

@@ -1253,6 +1254,7 @@ class QAST::OperationsJS {
12531254

12541255
add_simple_op('iseq_I', $T_INT, [$T_OBJ, $T_OBJ]);
12551256

1257+
12561258
# bigint arithmetic operators operators
12571259

12581260
add_simple_op('mul_I', $T_OBJ, [$T_OBJ, $T_OBJ, $T_OBJ]);

src/vm/js/nqp-runtime/io.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ op.getstdout = function() {
307307
return new Stdout();
308308
};
309309

310+
op.flushfh = function(fh) {
311+
// STUB - will require custom io to implement
312+
return fh;
313+
};
314+
310315
function Stdin() {
311316
}
312317

0 commit comments

Comments
 (0)