remove last two master updates and remove proxy

This commit is contained in:
2025-06-23 10:21:07 -05:00
parent 6eb33b8e48
commit 632b038561
3 changed files with 5 additions and 1105 deletions

View File

@@ -40,14 +40,14 @@ function console_rec(line, file, msg) {
var console_mod = cell.hidden.console
var logs = {}
logs.console = function(msg)
globalThis.log = {}
log.console = function(msg)
{
var caller = caller_data(2)
console_mod.print(console_rec(caller.line, caller.file, msg))
}
logs.error = function(msg = new Error())
log.error = function(msg = new Error())
{
var caller = caller_data(4)
@@ -57,21 +57,11 @@ logs.error = function(msg = new Error())
console_mod.print(console_rec(caller.line,caller.file,msg))
}
logs.system = function(msg) {
log.system = function(msg) {
msg = "[SYSTEM] " + msg
log.console(msg)
}
function noop() {}
globalThis.log = new Proxy(logs, {
get(target,prop,receiver) {
if (target[prop])
return (...args) => target[prop](args.join(' '))
return noop
}
})
// Get hidden modules from cell.hidden before stripping it
var hidden = cell.hidden
var actor_mod = hidden.actor