File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1654,10 +1654,9 @@ void WASI::_SetMemory(const FunctionCallbackInfo<Value>& args) {
16541654
16551655uvwasi_errno_t  WASI::backingStore (char ** store, size_t * byte_length) {
16561656  Local<WasmMemoryObject> memory = PersistentToLocal::Strong (this ->memory_ );
1657-   std::shared_ptr<BackingStore> backing_store =
1658-       memory->Buffer ()->GetBackingStore ();
1659-   *byte_length = backing_store->ByteLength ();
1660-   *store = static_cast <char *>(backing_store->Data ());
1657+   Local<v8::ArrayBuffer> ab = memory->Buffer ();
1658+   *byte_length = ab->ByteLength ();
1659+   *store = static_cast <char *>(ab->Data ());
16611660  CHECK_NOT_NULL (*store);
16621661  return  UVWASI_ESUCCESS;
16631662}
Original file line number Diff line number Diff line change @@ -105,12 +105,12 @@ void WasmStreamingObject::Push(const FunctionCallbackInfo<Value>& args) {
105105
106106  if  (LIKELY (chunk->IsArrayBufferView ())) {
107107    Local<ArrayBufferView> view = chunk.As <ArrayBufferView>();
108-     bytes = view->Buffer ()->GetBackingStore ()-> Data ();
108+     bytes = view->Buffer ()->Data ();
109109    offset = view->ByteOffset ();
110110    size = view->ByteLength ();
111111  } else  if  (LIKELY (chunk->IsArrayBuffer ())) {
112112    Local<ArrayBuffer> buffer = chunk.As <ArrayBuffer>();
113-     bytes = buffer->GetBackingStore ()-> Data ();
113+     bytes = buffer->Data ();
114114    offset = 0 ;
115115    size = buffer->ByteLength ();
116116  } else  {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments