Skip to content

Commit

Permalink
Stub nqp::getstdin.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Sep 7, 2015
1 parent ca3389d commit fabfc28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/vm/js/QAST/Compiler.nqp
Expand Up @@ -540,6 +540,7 @@ class QAST::OperationsJS {

add_simple_op('getstderr', $T_OBJ, [], :sideffects);
add_simple_op('getstdout', $T_OBJ, [], :sideffects);
add_simple_op('getstdin', $T_OBJ, [], :sideffects);

add_simple_op('open', $T_OBJ, [$T_STR, $T_STR], :sideffects);

Expand Down
6 changes: 6 additions & 0 deletions src/vm/js/nqp-runtime/io.js
Expand Up @@ -261,3 +261,9 @@ Stdout.prototype.printfh = function(msg) {
op.getstdout = function() {
return new Stdout();
};

function Stdin() {
}
op.getstdin = function() {
return new Stdin();
};

0 comments on commit fabfc28

Please sign in to comment.