remove actors being created via cmd line args
This commit is contained in:
@@ -1525,6 +1525,7 @@ JSC_CCALL(os_value_id,
|
||||
#include "qjs_crypto.h"
|
||||
#include "qjs_time.h"
|
||||
#include "qjs_http.h"
|
||||
#include "qjs_wota.h"
|
||||
|
||||
//JSValue js_imgui_use(JSContext *js);
|
||||
#define MISTLINE(NAME) (ModuleEntry){#NAME, js_##NAME##_use}
|
||||
@@ -1606,11 +1607,6 @@ void ffi_load(JSContext *js)
|
||||
JS_FreeValue(js,jsnumber);
|
||||
JS_FreeValue(js,number_proto);
|
||||
|
||||
JSValue args = JS_NewArray(js);
|
||||
for (int i = 0; i < rt->cmd.argc; i++)
|
||||
JS_SetPropertyUint32(js,args, i, JS_NewString(js,rt->cmd.argv[i]));
|
||||
|
||||
JS_SetPropertyStr(js,prosp,"argv", args);
|
||||
//JS_SetPropertyStr(js,prosp, "version", JS_NewString(js,CELL_VERSION));
|
||||
//JS_SetPropertyStr(js,prosp,"revision",JS_NewString(js,CELL_COMMIT));
|
||||
|
||||
@@ -1630,6 +1626,12 @@ void ffi_load(JSContext *js)
|
||||
|
||||
JS_SetPropertyStr(js, prosp, "hidden", hidden_fn);
|
||||
|
||||
if (rt->init_wota) {
|
||||
JS_SetPropertyStr(js, hidden_fn, "init", wota2value(js, rt->init_wota));
|
||||
// init wota can now be freed
|
||||
free(rt->init_wota);
|
||||
}
|
||||
|
||||
JS_FreeValue(js,globalThis);
|
||||
|
||||
cell_rt *actor = JS_GetContextOpaque(js);
|
||||
|
||||
Reference in New Issue
Block a user