diff --git a/src/ffi/data.cc b/src/ffi/data.cc index 308bde60cae2..8bd2c0d9f352 100644 --- a/src/ffi/data.cc +++ b/src/ffi/data.cc @@ -671,7 +671,8 @@ void ExportBytes(const FunctionCallbackInfo& 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; } @@ -689,7 +690,8 @@ void ExportBytes(const FunctionCallbackInfo& 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; }