mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
refactor(core): convert core.print() to a builtin op (#10436)
This commit is contained in:
parent
c9ac851b90
commit
ea917384fe
6 changed files with 32 additions and 46 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue