diff options
-rw-r--r-- | core/core.js | 2 | ||||
-rw-r--r-- | core/ops_builtin.rs | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/core/core.js b/core/core.js index f0933d034..32ff7758e 100644 --- a/core/core.js +++ b/core/core.js @@ -129,7 +129,7 @@ } function print(str, isErr = false) { - opSync("op_print", [str, isErr]); + opSync("op_print", str, isErr); } // Provide bootstrap namespace diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs index 023edc60e..ea539bc0a 100644 --- a/core/ops_builtin.rs +++ b/core/ops_builtin.rs @@ -57,10 +57,9 @@ pub fn op_close( /// Builtin utility to print to stdout/stderr pub fn op_print( _state: &mut OpState, - args: (String, bool), - _: (), + msg: String, + is_err: bool, ) -> Result<(), AnyError> { - let (msg, is_err) = args; if is_err { eprint!("{}", msg); stderr().flush().unwrap(); |