Implement chunk reflection, apparently forgot

This commit is contained in:
2025-07-24 03:05:42 -05:00
parent 28546018d2
commit a233adf37f
2 changed files with 30 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ make
sudo make install
```
## Build with shared libs only (no dependencies other than cmake and build-essentials)
## Build with shared libs only (self contained dependencies)
```bash
cmake -S ../.. -B . -DTESSESFRAMEWORK_ENABLE_STATIC=OFF -DTESSESFRAMEWORK_ENABLE_SHARED=ON -DTESSESFRAMEWORK_FETCHCONTENT=ON
make -j`nproc`

View File

@@ -5459,7 +5459,35 @@ namespace Tesses::CrossLang {
cse.back()->Push(gc, Undefined());
return false;
}
if(chunk != nullptr)
{
if(key == "Arguments")
{
auto myargs = TList::Create(ls);
gc->BarrierBegin();
for(auto item : chunk->args)
{
myargs->Add(item);
}
gc->BarrierEnd();
cse.back()->Push(gc, myargs);
return false;
}
if(key == "Code")
{
auto ba = TByteArray::Create(ls);
ba->data = chunk->code;
cse.back()->Push(gc, ba);
return false;
}
if(key == "File")
{
cse.back()->Push(gc, chunk->file);
return false;
}
cse.back()->Push(gc, Undefined());
return false;
}
if(callstackEntry != nullptr)
{
if(key == "IP")