Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/ffi/data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,8 @@ void ExportBytes(const FunctionCallbackInfo<Value>& args) {
if (args.Length() < 1) {
THROW_ERR_INVALID_ARG_TYPE(
env,
"The first argument must be a Buffer, ArrayBuffer, or ArrayBufferView");
"The first argument must be a Buffer, ArrayBuffer, SharedArrayBuffer, "
"or ArrayBufferView");
return;
}

Expand All @@ -689,7 +690,8 @@ void ExportBytes(const FunctionCallbackInfo<Value>& args) {
} else {
THROW_ERR_INVALID_ARG_TYPE(
env,
"The first argument must be a Buffer, ArrayBuffer, or ArrayBufferView");
"The first argument must be a Buffer, ArrayBuffer, SharedArrayBuffer, "
"or ArrayBufferView");
return;
}

Expand Down
Loading