Browse Source

* Introduce InstanceBuffer

Michael Van Canneyt 1 year ago
parent
commit
511d4cd282
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/job/src/job_browser.pp

+ 3 - 1
packages/job/src/job_browser.pp

@@ -267,9 +267,11 @@ end;
 
 function TJSObjectBridge.FindGlobalObject(const aName: string): TJOBObjectID;
 begin
-  // this one is special, it needs to be re-registered every time
+  // these two are special, it needs to be re-registered every time
   if aName='InstanceMemory' then
     Exit(RegisterLocalObject(TJSUint8Array.New(getModuleMemoryDataView.buffer)))
+  else if aName='InstanceBuffer' then
+    Exit(RegisterLocalObject(getModuleMemoryDataView.buffer))
   else
     begin
     if not FGlobalNames.hasOwnProperty(aName) then