Use new build setup

This commit is contained in:
2026-06-20 01:03:23 -05:00
parent bdbdfde646
commit 671a4c88b7
19 changed files with 344 additions and 105 deletions
+5 -2
View File
@@ -79,11 +79,14 @@ TObject Console_Fatal(GCList &ls, std::vector<TObject> args) {
exit(1);
}
TObject Console_WriteLine(GCList &ls, std::vector<TObject> args) {
if (args.size() < 1) {
Tesses::Framework::Console::WriteLineView("");
return Undefined();
}
Tesses::Framework::Console::WriteLine(ToString(ls.GetGC(), args[0]));
std::string text = ToString(ls.GetGC(), args[0]);
Tesses::Framework::Console::WriteLine(text);
return Undefined();
}
@@ -153,7 +156,7 @@ TObject Console_List(GCList &ls, std::vector<TObject> args) {
return (int64_t)Tesses::Framework::Console::List(items);
}
return 0;
return (int64_t)0;
}
void TStd::RegisterConsole(std::shared_ptr<GC> gc, TRootEnvironment *env) {
env->permissions.canRegisterConsole = true;
+2 -2
View File
@@ -215,7 +215,7 @@ class TServerContext : public TNativeObjectThatReturnsHttpDictionary {
else if (key == "getIP")
return ctx->ip;
else if (key == "getPort")
return ctx->port;
return (int64_t)ctx->port;
else if (key == "getOriginalPath")
return ctx->originalPath;
else if (key == "getPath")
@@ -235,7 +235,7 @@ class TServerContext : public TNativeObjectThatReturnsHttpDictionary {
return sc;
}
} else if (key == "getStatusCode")
return ctx->statusCode;
return (int64_t)ctx->statusCode;
else if (key == "getQueryParams")
return TNativeObject::Create<THttpDictionary>(ls, &ctx->queryParams,
this);