rm constructors
This commit is contained in:
@@ -53,8 +53,6 @@ globalThis.ends_with = function(str, suffix) {
|
||||
return search(str, suffix, -length(suffix)) != null
|
||||
}
|
||||
|
||||
|
||||
|
||||
var js = use_embed('js')
|
||||
var fd = use_embed('fd')
|
||||
|
||||
@@ -166,6 +164,12 @@ globalThis.log = function(name, args) {
|
||||
|
||||
function disrupt(err)
|
||||
{
|
||||
if (is_function(err.toString)) {
|
||||
os.print(err.toString())
|
||||
os.print("\n")
|
||||
os.print(err.stack)
|
||||
}
|
||||
|
||||
if (overling) {
|
||||
if (err) {
|
||||
// with an err, this is a forceful disrupt
|
||||
@@ -182,7 +186,7 @@ function disrupt(err)
|
||||
$_.stop(create_actor({id}))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
if (err) {
|
||||
log.console(err);
|
||||
if (err.stack)
|
||||
@@ -192,6 +196,8 @@ function disrupt(err)
|
||||
actor_mod.disrupt()
|
||||
}
|
||||
|
||||
|
||||
|
||||
actor_mod.on_exception(disrupt)
|
||||
|
||||
_cell.args = _cell.hidden.init
|
||||
|
||||
Reference in New Issue
Block a user