diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-03-03 17:12:10 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-03-03 19:19:01 -0800 |
commit | 2e9d43391ff977dffe8377be79267119ee1554bc (patch) | |
tree | ddc2dc173278a1a7140bc41a6bab2036cf6361fd /libdeno/binding.cc | |
parent | 2af04e674d69863a318b311090a89aaae0108fdd (diff) |
libdeno: remove `prints_newline` parameter from libdeno.print()
Diffstat (limited to 'libdeno/binding.cc')
-rw-r--r-- | libdeno/binding.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libdeno/binding.cc b/libdeno/binding.cc index d4849db7b..064ce2271 100644 --- a/libdeno/binding.cc +++ b/libdeno/binding.cc @@ -96,13 +96,8 @@ void Print(const v8::FunctionCallbackInfo<v8::Value>& args) { v8::String::Utf8Value str(isolate, args[0]); bool is_err = args.Length() >= 2 ? args[1]->BooleanValue(context).ToChecked() : false; - bool prints_newline = - args.Length() >= 3 ? args[2]->BooleanValue(context).ToChecked() : true; FILE* file = is_err ? stderr : stdout; fwrite(*str, sizeof(**str), str.length(), file); - if (prints_newline) { - fprintf(file, "\n"); - } fflush(file); } |