From ea917384feb1c800438d13dddac9ee977d2c47fe Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 3 May 2021 01:30:03 +0200 Subject: refactor(core): convert core.print() to a builtin op (#10436) --- core/core.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/core.js') diff --git a/core/core.js b/core/core.js index e5998fbc8..729ca4faa 100644 --- a/core/core.js +++ b/core/core.js @@ -124,6 +124,10 @@ opSync("op_close", rid); } + function print(str, isErr = false) { + opSync("op_print", [str, isErr]); + } + // Provide bootstrap namespace window.__bootstrap = {}; // Extra Deno.core.* exports @@ -132,6 +136,7 @@ opSync, ops, close, + print, resources, registerErrorClass, handleAsyncMsgFromRust, -- cgit v1.2.3