mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
feat(repl): add global clear() function (#14332)
This commit adds a clear() function in the REPL which works similar to console.clear().
This commit is contained in:
parent
f785ecee1a
commit
2a93c134dc
2 changed files with 20 additions and 0 deletions
|
@ -41,6 +41,8 @@ Object.defineProperty(globalThis, "_error", {
|
|||
console.log("Last thrown error is no longer saved to _error.");
|
||||
},
|
||||
});
|
||||
|
||||
globalThis.clear = console.clear.bind(console);
|
||||
"#;
|
||||
|
||||
pub enum EvaluationOutput {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue