separate out cell stuff & prosperon stuff

This commit is contained in:
2025-05-29 13:54:42 -05:00
parent 2e7643aa2a
commit c3f07c0ef5
361 changed files with 90 additions and 58 deletions

View File

@@ -1533,6 +1533,8 @@ void ffi_load(JSContext *js)
{
prosperon_rt *rt = JS_GetContextOpaque(js);
JS_FreeValue(js, js_blob_use(js)); // juice blob
m_seedRand(&rt->mrand, time(NULL));
// cell modules
@@ -1588,8 +1590,6 @@ void ffi_load(JSContext *js)
QJSCLASSPREP_FUNCS(font);
QJSCLASSPREP_FUNCS(datastream);
// use_dyn and use_embed moved to hidden_fn
JSValue jsobject = JS_GetPropertyStr(js,globalThis, "Object");
JS_SetPropertyStr(js, jsobject, "id", JS_NewCFunction(js, js_os_value_id, "id", 1));
JS_FreeValue(js,jsobject);