File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ inline void Debug(WASI* wasi, Args&&... args) {
73
73
} while (0 )
74
74
75
75
using v8::Array;
76
- using v8::BackingStore;
77
76
using v8::BigInt;
78
77
using v8::Context;
79
78
using v8::Exception;
@@ -1654,10 +1653,9 @@ void WASI::_SetMemory(const FunctionCallbackInfo<Value>& args) {
1654
1653
1655
1654
uvwasi_errno_t WASI::backingStore (char ** store, size_t * byte_length) {
1656
1655
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 ());
1656
+ Local<v8::ArrayBuffer> ab = memory->Buffer ();
1657
+ *byte_length = ab->ByteLength ();
1658
+ *store = static_cast <char *>(ab->Data ());
1661
1659
CHECK_NOT_NULL (*store);
1662
1660
return UVWASI_ESUCCESS;
1663
1661
}
Original file line number Diff line number Diff line change @@ -107,12 +107,12 @@ void WasmStreamingObject::Push(const FunctionCallbackInfo<Value>& args) {
107
107
108
108
if (LIKELY (chunk->IsArrayBufferView ())) {
109
109
Local<ArrayBufferView> view = chunk.As <ArrayBufferView>();
110
- bytes = view->Buffer ()->GetBackingStore ()-> Data ();
110
+ bytes = view->Buffer ()->Data ();
111
111
offset = view->ByteOffset ();
112
112
size = view->ByteLength ();
113
113
} else if (LIKELY (chunk->IsArrayBuffer ())) {
114
114
Local<ArrayBuffer> buffer = chunk.As <ArrayBuffer>();
115
- bytes = buffer->GetBackingStore ()-> Data ();
115
+ bytes = buffer->Data ();
116
116
offset = 0 ;
117
117
size = buffer->ByteLength ();
118
118
} else {
You can’t perform that action at this time.
0 commit comments