Skip to content

Commit

Permalink
fix for thread shared arraybuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
billywhizz committed Aug 1, 2021
1 parent 0aae668 commit ddfb038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion just.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ int just::CreateIsolate(int argc, char** argv,
NewStringType::kNormal)).ToLocalChecked();
Local<Object> justInstance = Local<Object>::Cast(obj);
if (buf != NULL) {
std::unique_ptr<BackingStore> backing = ArrayBuffer::NewBackingStore(
std::unique_ptr<BackingStore> backing = SharedArrayBuffer::NewBackingStore(
buf->iov_base, buf->iov_len, [](void*, size_t, void*){}, nullptr);
Local<SharedArrayBuffer> ab = SharedArrayBuffer::New(isolate, std::move(backing));
justInstance->Set(context, String::NewFromUtf8Literal(isolate,
Expand Down

0 comments on commit ddfb038

Please sign in to comment.